无法启动nfs网关-hadoop

p8ekf7hl  于 2021-06-02  发布在  Hadoop
关注(0)|答案(2)|浏览(347)

我无法在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号,但没用。你知道我该怎么办吗?

zed5wv10

zed5wv101#

您需要运行rpcbind:

sudo service rpcbind start
r1zk6ea1

r1zk6ea12#

在最新的rhel版本中使用 systemctl 命令反省和控制系统。

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

旧的/etc/init.d/脚本仍然可以用于某些服务,以实现遗留支持和向后兼容性。

相关问题