I am playing around with the Ambari single node,4 node and 3 node installation by adding a new node etc. Hadoop01 is the Ambari server,during my first 4 node cluster install practice I included it hadoop01.FQDN among the hosts to confirm and it was successfully discovered.See attached 4 node -install.
I then reinstalled all the 4 hosts because initially I hadn't allocated space in /usr, /etc /var I realised HDP put loads of files in the former directories ,coming from a Oracle DBA background I wanted too install the hadoop file in /u01/hadoop/hdp/* :-)
On my second 3 node install ,my intention was to install 3 nodes and practice adding the 4 node to the cluster later on but I am surprised I can't successfully discover the Ambari server see the attached 3 node install,
What could be the problem ? Here is the eror log
========================== Creating target directory... ========================== Command start time 2016-01-25 21:22:32 Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password). SSH command execution finished host=hadoop01.amuru.com, exitcode=255 Command end time 2016-01-25 21:22:32 ERROR: Bootstrap of host hadoop01.amuru.com 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).
@Neeraj Sabharwal I already did that I copied the generated id-rsa to other hosts from the Ambarai server hadoop01.amuru.com Thats why I am surprised that this time I am getting this error.
[root@hadoop01 ~]# ssh-keygen
[root@hadoop01 .ssh]# cat .ssh/id_rsa.pub | ssh root@ hadoop02 'cat >> .ssh/authorized_keys'
[root@hadoop01 .ssh]# cat .ssh/id_rsa.pub | ssh root@ hadoop03 'cat >> .ssh/authorized_keys'
[root@hadoop01 .ssh]# cat .ssh/id_rsa.pub | ssh root@ hadoop04 'cat >> .ssh/authorized_keys'
testing the passwordless setup
[root@hadoop01 ~]# ssh root@hadoop02
Last login: Fri Jan 21 11:16:56 2016 from hadoop01.amuru.com
[root@hadoop02 ~]# exit
As you can see all looks okay!