Configure mountable HDFS
CDP includes a FUSE (Filesystem in UserSpace) interface into HDFS. The
hadoop-hdfs-fuse command enables you to use your HDFS cluster as if it
were a traditional filesystem on Linux.
Set up and test your mount point depending on whether you have an HA or a
You can now run operations as if they are on your mount point.
- To set up and test your mount point in a non-HA
$ mkdir -p <mount_point> $ hadoop-fuse-dfs dfs://<name_node_hostname>:<namenode_port> <mount_point>
namenode_portis the NameNode's RPC port,
- To set up and test your mount point in an HA
mkdir -p <mount_point> hadoop-fuse-dfs dfs://<nameservice_id> <mount_point>
nameservice_idis the value of
fs.defaultFS. In this case the port defined for
dfs.namenode.rpc-address.[nameservice ID].[name node ID]is used automatically.
- To set up and test your mount point in a non-HA installation:
Clean up your test mount by using the