版权声明:转载请注明出处 https://blog.csdn.net/ZT7524/article/details/84928957
测试环境
centos6.10
cdh版本为5.15
问题描述
往集群中的主机添加角色时,发现HDFS 存在警告信息,其余角色正常。通过查看日志信息,发现 NFS Gateway 这一块出错,具体异常如下:
using as SECURE_USER
using as SECURE_GROUP
CONF_DIR=/run/cloudera-scm-agent/process/1436-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.
Wed Feb 21 01:07:02 EST 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 /run/cloudera-scm-agent/process/1436-hdfs-NFSGATEWAY as CONF_DIR
阅读上文信息,总结下来就是:在部署 NFS Gateway 的主机上没有运行portmap或者rpcbind服务,在尝试启动 NFS Gateway 角色实例之前,请先启动该主机上的portmap或者rpcbind服务。
安装所需依赖软件
根据如上异常所提示的,我们现在去安装相关软件:
[root@slave5 ~]# yum install nfs-utils rpcbind
//安装结束后将其运行
[root@slave5 ~]# /etc/init.d/rpcbind start
重启NFS Gateway 角色
这时即可成功启动。
整篇文档,按上述过程即可将角色分配成功。其实NFS的相关概念还是有必要理解一下,这里给出