Support Questions
Find answers, ask questions, and share your expertise

NFS Gateway not starting

NFS Gateway not starting

New Contributor

Hi,

I am not able to start NFS Gateway , Cluster is on Centos 7

below is the error , Thanks for your help

Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/nfsgateway.py", line 147, in <module>
    NFSGateway().execute()
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 280, in execute
    method(env)
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 720, in restart
    self.start(env, upgrade_type=upgrade_type)
  File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/nfsgateway.py", line 58, in start
    nfsgateway(action="start")
  File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs_nfsgateway.py", line 61, in nfsgateway
    prepare_rpcbind()
  File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs_nfsgateway.py", line 52, in prepare_rpcbind
    raise Fail("Failed to start rpcbind or portmap")
resource_management.core.exceptions.Fail: Failed to start rpcbind or portmap
4 REPLIES 4

Re: NFS Gateway not starting

@sagar lohani

It looks like your error is that rpcbind or portmap fails to start. Have you followed these instructions or did you following something else: http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.3/bk_hdfs-nfs-gateway-user-guide/content/ch01s...

How are you trying to start the NFS Gateway?

Can you check to see if rpcbind or portmap is already running?

Re: NFS Gateway not starting

Explorer
@sagar lohani

The following has solved the issue on CentOS 7.X for me:

systemctl enable rpcbind
systemctl start rpcbind

Re: NFS Gateway not starting

New Contributor

Hi, In my sandbox hadoop command not running is this something related to NFSGateway. because in my box NFS Gateway also not running. Your adice is much appreciated..

Re: NFS Gateway not starting

Expert Contributor

It worked for me too. Thanks man @sagar lohani