转自:http://blog.csdn.net/feloxx/article/details/49099397
如遇到NFS启动失败,或者其他机器挂载NFS失败,错误字样有如下
挂载失败关键字:
mount.nfs: requested NFS version or transport protocol is not supported
启动失败关键字:
WARN org.apache.hadoop.oncrpc.RpcProgram: Invalid RPC call version 4
NFS service is already running on this host. Please stop the NFS service running on this host before attempting to start the NFS Gateway role.
Started listening to TCP requests at port 2049 for Rpc program: NFS3 at localhost:2049 with workerCount 0
ShutdownHook ‘NfsShutdownHook’ failed, java.lang.RuntimeException: Unregistration failure
关键字样,没有portmap or rpcbind服务,所以后续工作无法进行:
No portmap or rpcbind service
工作运行机制为:
HDFS NFS Gateway工作需要依附 rpcbind 服务,所以启动前需要确定rpcbind服务正常开启。 service rpcbind start
但是HDFS NFS 服务会与系统自带的NFS服务冲突,所以在启动前需要关闭系统自带的NFS服务。service nfs stop