Back

HDFS NFS

Install the following packages;
nfs-utils.x86_64
nfs-utils-lib.x86_64
nfs-utils-lib-devel.x86_64
nfs4-acl-tools.x86_64

HDFS General conf :-
dfs.namenode.accesstime.precision = 3600000

Custom core-site :-
hadoop.proxyuser.root.groups = root,users
hadoop.proxyuser.root.hosts = *

Custom hdfs-site :-
dfs.nfs3.dump.dir = /tmp/.hdfs-nfs
dfs.nfs.exports.allowed.hosts = * rw

Start portmap and nfs3

/usr/hdp/current/hadoop-client/sbin/hadoop-daemon.sh --script "hdfs" start portmap
/usr/hdp/current/hadoop-client/sbin/hadoop-daemon.sh --script "hdfs" start nfs3

rpcinfo -p node1 showmount -e node1

mkdir /home/hdfs/hdfs-mount chown hdfs:hdfs /home/hdfshdfs-mount

mount -t nfs -o vers=3,proto=tcp,nolock,noatime node1:/ /home/hdfs/hdfs-mount