Created on 05-27-2017 11:10 AM - edited 09-16-2022 04:40 AM
Hi,
This is my first question here. I am very new to Hadoop, Big Data and Hortonworks.
I have created a five node (Virtual Machines) setup to get started. One VM is assigned for Ambari, another is a master node and the remaining are for data nodes.
When creating a passwordless SSH setup, do I need to create a setup from the master node and data nodes to Ambari node only, or from all nodes to all nodes?
Thanks in advance,
Regards,
Manoj.
Created 05-27-2017 11:36 AM
In addition to my previous comment.
Password less SSH is ONLY Needed, When you want Ambari Server to automatically install Ambari Agents on all your cluster hosts, you must set up password-less SSH connections between the Ambari Server host and all other hosts in the cluster.
Other wise if you plan to install Ambari Agents on your own then you do not need to even setup the password less ssh.
You can choose to manually install the Agents on each cluster host. In this case, you do not need to generate and distribute SSH keys.
.Please see:
Setting up Password less ssh: https://docs.hortonworks.com/HDPDocuments/Ambari-2.4.1.0/bk_ambari-installation/content/set_up_passw...
Installing Ambari Agents Manually: https://docs.hortonworks.com/HDPDocuments/Ambari-2.4.1.0/bk_ambari-reference/content/ch_amb_ref_inst...
.
Created 05-27-2017 11:15 AM
Yes, On the "Ambari Server" node you can run the following command to create the SSH keys:
# ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Enter passphrase (empty for no passphrase): (I kept it EMPTY) Enter same passphrase again: (I kept it EMPTY) Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: ........
.
Then you can run the following command to pass the authorization key entry to the cluster nodes.
# ssh-copy-id -i ~/.ssh/id_rsa.pub localhost # ssh-copy-id -i ~/.ssh/id_rsa.pub node1.exmaple.com # ssh-copy-id -i ~/.ssh/id_rsa.pub node2.exmaple.com # ssh-copy-id -i ~/.ssh/id_rsa.pub node2.exmaple.com # ssh-copy-id -i ~/.ssh/id_rsa.pub node3.exmaple.com # ssh-copy-id -i ~/.ssh/id_rsa.pub node4.exmaple.com
.
This thing you need to do only from "Ambari Server" node
Created 05-27-2017 11:18 AM
Created 05-27-2017 01:02 PM
Oh, okay, thanks,
Created 05-27-2017 11:36 AM
In addition to my previous comment.
Password less SSH is ONLY Needed, When you want Ambari Server to automatically install Ambari Agents on all your cluster hosts, you must set up password-less SSH connections between the Ambari Server host and all other hosts in the cluster.
Other wise if you plan to install Ambari Agents on your own then you do not need to even setup the password less ssh.
You can choose to manually install the Agents on each cluster host. In this case, you do not need to generate and distribute SSH keys.
.Please see:
Setting up Password less ssh: https://docs.hortonworks.com/HDPDocuments/Ambari-2.4.1.0/bk_ambari-installation/content/set_up_passw...
Installing Ambari Agents Manually: https://docs.hortonworks.com/HDPDocuments/Ambari-2.4.1.0/bk_ambari-reference/content/ch_amb_ref_inst...
.