Quantcast
Channel: Hortonworks » All Topics
Viewing all articles
Browse latest Browse all 5121

NFS to HDFS Gateway error: User: hdfs is not allowed to impersonate root

$
0
0

Replies: 3

We have a ten node hadoop cluster running Hortonworks Data Platform 2.1 on CentOS 6.5 and we are trying to get the NFS to HDFS gateway up and running. First we followed the instructions here:

http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.1-latest/bk_user-guide/content/user-guide-hdfs-nfs-instructions.html

We used the Ambari client to make sure the config file changes went to all the nodes and they do appear to have migrated across the cluster. I believe we are using the user hdfs throughout the system. The following properties have been set in core-sites.xml:
hadoop.proxyuser.nfsserver.groups: hdfs
hadoop.proxyuser.nfsserver.hosts: hnode003

I run the command “hadoop nfs3” as user hdfs. The command “showmount -e hnode003” outputs:
Export list for hnode003:
/ *

in /etc/fstab I have the following line appended to the file:
hnode003:/ /media/hdfs nfs tcp,nfsvers=3,proto=tcp,nolock,user 0 0

Then when I issue the command as user hdfs “mount /media/hdfs” I get the error org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): User: hdfs is not allowed to impersonate root

Any ideas? Thanks for your help.


Viewing all articles
Browse latest Browse all 5121

Trending Articles