No portmap or rpcbind service is running on this host

+ echo '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.'

问题:

Centos7 安装CDH时报错:

+ make_scripts_executable
+ find /opt/cloudera-manager/cm-5.14.1/run/cloudera-scm-agent/process/193-hdfs-NFSGATEWAY -regex '.*\.\(py\|sh\)$' -exec chmod u+x '{}' ';'
+ '[' DATANODE_MAX_LOCKED_MEMORY '!=' '' ']'
+ ulimit -l
+ export HADOOP_IDENT_STRING=hdfs
+ HADOOP_IDENT_STRING=hdfs
+ '[' -n '' ']'
+ '[' mkdir '!=' nfs3 ']'
+ acquire_kerberos_tgt hdfs.keytab
+ '[' -z hdfs.keytab ']'
+ '[' -n '' ']'
+ '[' validate-writable-empty-dirs = nfs3 ']'
+ '[' file-operation = nfs3 ']'
+ '[' bootstrap = nfs3 ']'
+ '[' failover = nfs3 ']'
+ '[' transition-to-active = nfs3 ']'
+ '[' initializeSharedEdits = nfs3 ']'
+ '[' initialize-znode = nfs3 ']'
+ '[' format-namenode = nfs3 ']'
+ '[' monitor-decommission = nfs3 ']'
+ '[' jnSyncWait = nfs3 ']'
+ '[' nnRpcWait = nfs3 ']'
+ '[' -safemode = '' -a get = '' ']'
+ '[' monitor-upgrade = nfs3 ']'
+ '[' finalize-upgrade = nfs3 ']'
+ '[' rolling-upgrade-prepare = nfs3 ']'
+ '[' rolling-upgrade-finalize = nfs3 ']'
+ '[' nnDnLiveWait = nfs3 ']'
+ '[' monitor-offline = nfs3 ']'
+ '[' refresh-datanode = nfs3 ']'
+ '[' mkdir = nfs3 ']'
+ '[' nfs3 = nfs3 ']'
+ connect_to_port 111
+ PORT=111
+ python -c 'import socket; import sys; s = socket.socket(socket.AF_INET); s.settimeout(5.0); s.connect((sys.argv[1], int(sys.argv[2]))); s.close();' localhost 111
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib64/python2.7/socket.py", line 224, in meth
	return getattr(self._sock,name)(*args)
socket.error: [Errno 111] Connection refused
+ '[' 1 -ne 0 ']'
+ echo 'Cannot connect to port 111.'
+ return 1
+ '[' 1 -eq 1 ']'
+ echo '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.'
+ exit 1

解决方法:

要启动rpcbind

安装:

yum install nfs-utils rpcbind

查看状态:

systemctl status rpcbind.service

启动:

systemctl start rpcbind.service

转载于:https://my.oschina.net/lwenhao/blog/3021836

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值