1. 程式人生 > >HDFS NFS Gateway 無法啟動、掛載失敗問題(CM叢集安裝HDFS)

HDFS NFS Gateway 無法啟動、掛載失敗問題(CM叢集安裝HDFS)

今天在搭建叢集的時候給HDFS新增角色的時候,出現了 NFS Gateway 一直啟動失敗,具體的錯誤如下:

using  as SECURE_USER
using  as SECURE_GROUP
CONF_DIR=/var/run/cloudera-scm-agent/process/78-hdfs-NFSGATEWAY
CMF_CONF_DIR=/etc/cloudera-scm-agent
unlimited
Cannot connect to port 111.
No portmap or rpcbind service is running on this host. Please start portmap or rpcbind service before attempting to start the NFS Gateway role on this
host. Tue Dec 4 10:25:43 CST 2018 JAVA_HOME=/usr/java/jdk1.7.0_67-cloudera using /usr/java/jdk1.7.0_67-cloudera as JAVA_HOME using 5 as CDH_VERSION using /var/run/cloudera-scm-agent/process/78-hdfs-NFSGATEWAY as CONF_DIR using as SECURE_USER using as SECURE_GROUP CONF_DIR=/var/run/cloudera-scm-agent/process/78-hdfs-NFSGATEWAY CMF_CONF_DIR
=/etc/cloudera-scm-agent unlimited Cannot connect to port 111. No portmap or rpcbind service is running on this host. Please start portmap or rpcbind service before attempting to start the NFS Gateway role on this host. Tue Dec 4 10:25:45 CST 2018 JAVA_HOME=/usr/java/jdk1.7.0_67-cloudera using /usr/java/jdk1.7
.0_67-cloudera as JAVA_HOME using 5 as CDH_VERSION using /var/run/cloudera-scm-agent/process/78-hdfs-NFSGATEWAY as CONF_DIR using as SECURE_USER using as SECURE_GROUP CONF_DIR=/var/run/cloudera-scm-agent/process/78-hdfs-NFSGATEWAY CMF_CONF_DIR=/etc/cloudera-scm-agent unlimited

具體的錯誤如下No portmap or rpcbind service is running on this host. Please start portmap or rpcbind service before attempting to start the NFS Gateway role on this host.

這個問題是 portmap or rpcbind服務沒有啟動導致的:
解決辦法如下:
HDFS NFS Gateway工作需要依附 rpcbind 服務,所以啟動前需要確定rpcbind服務正常開啟。 service rpcbind start (在新增服務的機器上面都需要執行)
但是HDFS NFS 服務會與系統自帶的NFS服務衝突,所以在啟動前需要關閉系統自帶的NFS服務。service nfs stop (這個服務沒有就不管他)
開啟服務然後再新增服務啟動服務:

至此服務啟動成功

參考文件如下:

https://blog.csdn.net/ashic/article/details/79459048

https://cloud.tencent.com/developer/article/1189360