In the previous article, the cluster runs in test [1-4]. Set the nfsserver user group to root and the host to test1 (the same as namenode ). The version is CDH5.2.1 (Hadoop2.5.0 ). Vimetchadoopconfcore-site.xmlpropertynamehadoop.proxyuser.root.groupsnamevaluerootvaluepropertypropertyname
In the previous article, the cluster runs in test [1-4]. Set the nfsserver user group to root and the host to test1 (the same as namenode ). The version is CDH5.2.1 (Hadoop 2.5.0 ). Vim/etc/hadoop/conf/core-site.xmlproperty namehadoop. proxyuser. root. groups/name valueroot/value/propertyproperty name
In the previous article, the cluster runs in test [1-4]. Set the nfsserver user group to root and the host to test1 (the same as namenode ). The version is CDH5.2.1 (Hadoop 2.5.0 ).
Vim/etc/hadoop/conf/core-site.xml
Hadoop. proxyuser. root. groups
Root
Hadoop. proxyuser. root. hosts
Test1
# Only allow all users to read-only:
Nfs. exports. allowed. hosts
* Ro
# Stop native service nfs stopservice rpcbind stop # Start NFS service nohup hdfs portmap &... 14/12/24 09:45:13 INFO portmap. portmap: Portmap server started at tcp: // 0.0.0.0: 111, udp: // 0.0.0.0: 111su-hdfshdfs nfs3 # view service status rpcinfo-p test1 program vers proto port service 100000 4 tcp 111 portmapper 100000 3 tcp 111 portmapper 100000 2 tcp 111 portmapper 100000 4 udp 111 portmapper 100000 3 udp 111 portmapper 100000 2 udp 111 portmapper 100005 1 udp 4242 mountd 100005 2 udp 4242 mountd 100005 3 udp 4242 mountd 100005 1 tcp 4242 mountd 100005 2 tcp 4242 mountd 100005 3 tcp 4242 mountd 100003 3 tcp 2049 nfs # view the export directory showmount-e test1Export list for test1: /* # Mount directory mkdir/mnt/hdfsmount. nfs test1: // mnt/hdfs-o nolockhdfs dfs-appendToFile-/user/hive/hello.txt hellocat/mnt/hdfs/user/hive/hello.txt hello
This article from: http://debugo.com, original address: http://debugo.com/hdfs-nfsop/, thanks to the original author to share.