linux – Getting “mount.nfs: mount system call failed” on mounting HDFS – Stack Overflow

2

down vote

favorite

I am trying to mount the HDFS file system as per the content in the URL http://hadoop.apache.org/docs/r2.5.1/hadoop-project-dist/hadoop-hdfs/HdfsNfsGateway.html

But at the final mount statement, I am getting the mount.nfs: mount system call failed

I got that output on executing the below command:

<code>mount -t nfs -o vers=3,proto=tcp,nolock,noacl &lt;HDFS server name&gt;:/ &lt;existing local directory&gt;</p><p></code>

I am running the hadoop in a Pseudo Distributed mode.

share|improve this question

1

 

This seems like a question which is better suited over on “serverfault.com”. More linux gurus over there 😉

– 

exhuma

Nov 6 ’14 at 12:32

1 Answer

1

active

oldest

votes

up vote

0

down vote

If you use root to mount nfs at client, for example, you need to add following configuration in core-site.xml under $HADOOP_HOME/etc/hadoop/

<code>  &lt;property&gt;</p><p>    &lt;name&gt;hadoop.proxyuser.root.groups&lt;/name&gt;</p><p>    &lt;value&gt;*&lt;/value&gt;</p><p>  &lt;/property&gt;</p><p>  &lt;property&gt;</p><p>    &lt;name&gt;hadoop.proxyuser.root.hosts&lt;/name&gt;</p><p>    &lt;value&gt;*&lt;/value&gt;</p><p>  &lt;/property&gt;</p><p></code>

share|improve this answer

来源URL:http://stackoverflow.com/questions/26779396/getting-mount-nfs-mount-system-call-failed-on-mounting-hdfs