利用Ambari安装Hadoop,主机与主机之间已经添加了免密登录,在Confirm Hosts步骤还是报错,错误信息如下:

Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
SSH command execution finished
host=master.host, exitcode=255
Command end time 2019-09-01 17:28:24

ERROR: Bootstrap of host master.host fails because previous action finished with non-zero exit code (255)
ERROR MESSAGE: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).

经测试,在主机使用ssh localhost仍需要输入密码,所以需要将id_rsa.pub的文件内容复制到authorized_keys,设置本主机对自己免密登录即可。

依次执行以下命令:

cd ~/.ssh
cat id_rsa.pub >> authorized_keys

命令执行完,问题解决。

扫码关注李苦李公众号

李苦李公众号

标签: 大数据, Hadoop

添加新评论