CDH添加 NFS Gateway 角色实例启动失败问题

环境信息:

测试环境 版本
操作系统 centos6.9
CDH 5.13

问题描述:

往集群中的主机添加角色时,发现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服务。

解决方案:

安装所需依赖软件
根据如上异常所提示的,我们现在去安装相关软件:

yum install nfs-utils rpcbind
//安装结束后将其运行
/etc/init.d/rpcbind start

重启NFS Gateway 角色
这时即可成功启动。

原文地址:https://www.cnblogs.com/erlou96/p/14578767.html