Created 11-21-2016 04:47 AM
Hi Team,
I am installing 15node cluster with HDP 2.4 and unable to proceed with below error:
========================== Creating target directory... ==========================
Command start time 2016-11-21 12:12:42
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password). SSH command execution finished host=xxx, exitcode=255 Command end time 2016-11-21 12:12:42
ERROR: Bootstrap of host hdpmaster01.supermoon.com fails because previous action finished with non-zero exit code (255) ERROR MESSAGE: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
I followed below steps:
ssh-keygen
.ssh/id_rsa
.ssh/id_rsa.pub
cat id_rsa.pub >> authorized_keys
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys
copy authorizedkeys files to all hosts
ssh is working without password.
selinux is disabled and firewall is off on all nodes and my /etc/hosts file first two lines shows:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
Please help me in resolving issue.
Sridhar
Created 11-21-2016 05:36 AM
drwx------ root root ? . dr-xr-x---. root root system_u:object_r:admin_home_t:s0 .. -rw------- root root ? authorized_keys -rw------- root root ? id_rsa -rw-r--r-- root root ? id_rsa.pub -rw-r--r-- root root ? known_hosts
Created 11-21-2016 06:16 AM
This is the last thing I can suggest which I don't think should make a difference if your ssh works from putty/ssh terminal. Change permissions on "id_rsa" to 400. It is currently set at 600 which should be okay. The other thing is the host names you are providing in ambari should be same as in your known_hosts file. Otherwise, delete known_hosts file on ambari node, connect to all other nodes using the exact same name that you are using in Ambari. It will ask you to confirm that you trust this host and will ask you to add to known host file. Say yes, and then try again. If it still doesn't work, please share your ambari screen where you are specifying host names and ssh key and user name (root).
Created 11-21-2016 06:21 AM
Hi Quereshi,
My /etc/host file is like this:
192.168.49.121 HDPMaster.example.com HDPMaster where are ambari retrieves as hdpmaster.example.com.Is this is some thing obstructing to go further.
sridhar
Created 11-21-2016 06:22 AM
if you are able to ssh without password, your /etc/hosts file shouldn't matter. I am assuming it is working because like you said, you are able to ssh without password.
Created 11-21-2016 06:35 AM
Check your known_hosts file to match the case for the hosts. Also, check ssh to and from all the hosts.
What does hostname -f return?