I am trying to setup a multi-node cluster using Ambari with 6 hosts created with Scaleway.com . I already did the steps described in the hortonworks Docs. I use Hdp 3.0.1 with Ambari 18.104.22.168.
The steps I have already followed
ERROR 1 : I Found error in ssh connections btw hosts when i'am using Root users
When I'm using other user its work fine
ERROR 2 : When I'm using other users i found an Error in the step 3 " Confirm Hosts " in Ambari Ui installation
Please dont mark this question as a duplicate. I could see other questions with same description but none of them solve my prb.
thank you in advance :)
Few things you should check before you try to register/install agents via Ambari UI.
0). Create password less ssh keys (with Emopty pass phrase)
1). What is the permission of the following files (should be 600) ?
# ls -l ~/.ssh/id* -rw-------. 1 root root 1679 May 22 2018 /root/.ssh/id_rsa -rw-------. 1 root root 406 May 22 2018 /root/.ssh/id_rsa.pub
2). In order to perfectly copy the SSH Keys to other hosts
# ssh-copy-id -i ~/.ssh/id_rsa.pub hdp-master1 # ssh-copy-id -i ~/.ssh/id_rsa.pub hdp-master2 # ssh-copy-id -i ~/.ssh/id_rsa.pub hdp-slave1 # ssh-copy-id -i ~/.ssh/id_rsa.pub hdp-slave2 # ssh-copy-id -i ~/.ssh/id_rsa.pub hdp-slave3
3). Onece above is done then try to manually connect to those hosts to see if you are able to do passwordless on your own own not?
# ssh root@hdp-master2 (OR) # ssh root@hdp-slave-1
Few other things to check:
4). Are you running Ambari Agents as non root user?
5). Make sure that every Node in the cluster has correct entries inside the "/etc/hosts" file (mostly it will be identical entries on all hosts) so that every node in the cluster can identify each other using theior FQDN. So please verify the following commands on couple of cluster nodes to see if they are showing correct results?
# cat/etc/hosts # hostname -f
6). Now proceed with the Ambari UI to setup the cluster.
Hello @Jay Kumar SenSharma
Thanks for your answer,
I already did this and the errors still. For example when i use the root user and test to do
ssh-copy-id -i ~/.ssh/id_rsa.pub root@hdp-master2
It ask for the root password I give it the password that I already set.it displays the following error :
root@hdp-master2's password: Permission denied, please try again. root@hdp-master2's password: Permission denied, please try again. root@hdp-master2's password: root@hdp-master2: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).