无法启动NFS网关 - Hadoop

时间:2014-06-01 16:08:43

标签: hadoop hdfs cloudera

我无法在Cloudera中启动NFS网关。它给了我错误Supervisor returned FATAL. Please check the role log file, stderr, or stdout

但是我在stdout中可以观察到的唯一奇怪的事情是

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

我试图将端口111更改为1111,但它没有帮助。任何想法我该怎么办?

2 个答案:

答案 0 :(得分:3)

你需要运行rpcbind:

sudo service rpcbind start

答案 1 :(得分:1)

在最新的RHEL版本中,使用systemctl命令来内省和控制systemd。

   systemctl status rpcbind.service # Check status of rpcbind
   systemctl start rpcbind.service  # Start rpcbind
   systemctl stop rpcbind.service   # Stop rpcbind 

旧的/etc/init.d/脚本仍可用于某些服务以获得旧版支持和向后兼容性。