我对hadoop非常陌生,正在尝试使用hadoop-3.1.2设置psuedo分布式模式执行。当我试图启动Yarn服务,我得到以下错误,请看下面的代码片段。
$ sbin/start-yarn.sh
Starting resourcemanagers on []
localhost: ERROR: Cannot set priority of resourcemanager process 13209
pdsh@manager-4: localhost: ssh exited with exit code 1
Starting nodemanagers
localhost: ERROR: Cannot set priority of nodemanager process 13366
pdsh@manager-4: localhost: ssh exited with exit code 1
我试着解决这个stackoverflow问题,这和我的问题非常相似。但一切都没有结果。一个和我一样的问题在这里的另一个论坛上发布。然而,那里也没有解决办法。
然后,我尝试了另一种选择,我在下面的文本中描述。我在sbin/start-yarn.sh文件中设置了以下导出。
export HDFS_NAMENODE_USER="root"
export HDFS_DATANODE_USER="root"
export HDFS_SECONDARYNAMENODE_USER="root"
export YARN_RESOURCEMANAGER_USER="root"
export YARN_NODEMANAGER_USER="root"
然后用sbin/start-yarn.sh执行,得到以下错误。请注意,我已经为您完成了无密码ssh的所有设置root@localhost.
$ sudo sbin/start-yarn.sh
Starting resourcemanagers on []
localhost: Permission denied (publickey).
pdsh@manager-4: localhost: ssh exited with exit code 255
Starting nodemanagers
localhost: Permission denied (publickey).
pdsh@manager-4: localhost: ssh exited with exit code 255
2条答案
按热度按时间k4ymrczo1#
在运行start-warn脚本之前,请尝试以下命令:ssh localhost
brgchamk2#
为localhost设置无密码ssh后,请将pdsh\u rcmd\u type值更改为ssh: