我正在使用单机设置 Ambari 服务器,以便我可以安装 Hadoop。引用了很多网站。我在注册节点时遇到的错误是:
Creating target directory...
==========================
Command start time 2017-07-26 14:50:10
Permission denied (publickey).
SSH command execution finished
host=shubham-r528-r728, exitcode=255
Command end time 2017-07-26 14:50:11
ERROR: Bootstrap of host shubham-r528-r728 fails because previous action finished with non-zero exit code (255)
ERROR MESSAGE: Permission denied (publickey).
STDOUT:
Permission denied (publickey).
enter image description here
我有
shubham@shubham-R528-R728:~$ hostname -f
shubham-R528-R728
shubham@shubham-R528-R728:~$
我关注 http://linux-sys-adm.com/how-to-install-and-configure-ssh-on-ubuntu-server-14.04-lts-step-by-step/在我的 root 帐户上设置 ssh key 。
最佳答案
使用 amabari 设置集群需要以下步骤:
您看到的症状出现在第 2 部分,但从评论判断问题的根本原因实际上在第 1 部分。
好消息是,当问题不是特定于 hadoop 时,您会看到通常会有更多的人遇到它们并发布解决方案。
我不确定这对您的情况是否有帮助(因为您以 root 身份执行操作),但是快速搜索未能添加主机将我带到 this question ,这基本上表明相关的ssh文件可能存在正确的问题。
开箱即用:如果您的问题是无法将主机添加到已知主机文件中,也许您可以以某种方式手动添加它。
关于ubuntu - 无法在 Ambari 服务器中添加主机,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45322821/