在ambari hadoop安装过程中,许可被拒绝(publickey,gssapi-keyex,gssapi-with-mic,密码) [英] Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password) during ambari hadoop installation
问题描述
我尝试使用ambari部署hadoop集群,但是当我使用FQDN选择主机名并继续配置时,我得到ssh的权限被拒绝错误。
步骤:
1.使用ssh-keygen作为root生成rsa密钥。
- 更改.ssh的权限(700)和authorized_keys(640)
- 将公钥授予authorized_keys。
- 并将公钥复制到所有主机(authorized_keys)和更改了文件权限,如上所述。
- 我可以从ambari服务器主机向所有其他主机ssh无密码。
但是ambari没有执行hadoop安装,出现如下错误。
SSH命令执行完成
host = XXX,exitcode = 255
命令结束时间2015-06-23 10:44:07
错误:主机XXX的引导失败,因为上一个操作使用非零退出代码完成(255)
错误消息:权限被拒绝(publickey,gssapi-keyex, GSSAPI与 - 麦克风,密码)。
STDOUT:
权限被拒绝(publickey,gssapi-keyex,gssapi-with-mic,密码)。
请不要将此问题标记为重复。我可以看到其他相同描述的问题,但没有一个提到有关Ambari ssh权限被拒绝的错误。
与他的问题。
ssh -i< your_keypair> root @< your_host>
我试过这个,但是没有解决。
这是我的解决方案
host1 ip:192.168.1.21
host2 ip:192.168.1.22
p> host3 ip:192.168.1.23
在host1上:
rm -rf /root/.ssh
ssh-keygen -t dsa
cat /root/.ssh/id_dsa.pub>> /root/.ssh/authorized_keys
scp /root/.ssh/id_dsa.pub host2:/ root /
scp /root/.ssh/id_dsa.pub host3:/ root /
在host2上:
rm -rf /root/.ssh
ssh-keygen -t dsa
cat /root/id_dsa.pub>> /root/.ssh/authorized_keys
在host3上:
rm -rf /root/.ssh
ssh-keygen -t dsa
cat /root/id_dsa.pub>> /root/.ssh/authorized_keys
host1:/root/.ssh/id_dsa这是您需要。
I am trying to deploy a hadoop cluster using ambari, but when i select the hostnames with FQDN and proceed to configure I get the permission denied error for ssh.
STEPS: 1. generated rsa key using ssh-keygen as root.
- changed permission for .ssh(700) and authorized_keys(640)
- cat the public key to authorized_keys.
- and copied the public key to all the hosts(authorized_keys) and changed the file permission as above.
- I could ssh passwordless from ambari server host to all the other hosts.
But from ambari is failing to do the hadoop installation with below error.
SSH command execution finished
host=XXX, exitcode=255
Command end time 2015-06-23 10:44:07
ERROR: Bootstrap of host XXX fails because previous action finished with non-zero exit code (255)
ERROR MESSAGE: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
STDOUT:
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
Please dont mark this question as a duplicate. I could see other questions with same description but none of them mention about the Ambari ssh permission denied error.
I encountered the same problem with him.
ssh -i <your_keypair> root@<your_host>
I tried this but it wasn't solved.
Here's my solution
host1 ip:192.168.1.21
host2 ip:192.168.1.22
host3 ip:192.168.1.23
on host1:
rm -rf /root/.ssh
ssh-keygen -t dsa
cat /root/.ssh/id_dsa.pub >> /root/.ssh/authorized_keys
scp /root/.ssh/id_dsa.pub host2:/root/
scp /root/.ssh/id_dsa.pub host3:/root/
on host2:
rm -rf /root/.ssh
ssh-keygen -t dsa
cat /root/id_dsa.pub >> /root/.ssh/authorized_keys
on host3:
rm -rf /root/.ssh
ssh-keygen -t dsa
cat /root/id_dsa.pub >> /root/.ssh/authorized_keys
host1:/root/.ssh/id_dsa This's the file which you need.
这篇关于在ambari hadoop安装过程中,许可被拒绝(publickey,gssapi-keyex,gssapi-with-mic,密码)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!