Created 08-29-2016 09:04 PM
Hi,
I am trying to add new node to the cluster from Ambari, I am providing host IP, username & ssh key.
Getting this error in ambari
========================== Creating target directory... ========================== Command start time 2016-08-29 20:54:24 chmod: cannot access ���/var/lib/ambari-agent/data���: No such file or directory Connection to 10.8.17.132 closed. SSH command execution finished host=10.8.17.132, exitcode=0 Command end time 2016-08-29 20:54:24 ========================== Copying common functions script... ========================== Command start time 2016-08-29 20:54:24 scp /usr/lib/python2.6/site-packages/ambari_commons host=10.8.17.132, exitcode=0 Command end time 2016-08-29 20:54:24 ========================== Copying OS type check script... ========================== Command start time 2016-08-29 20:54:24 scp /usr/lib/python2.6/site-packages/ambari_server/os_check_type.py host=10.8.17.132, exitcode=0 Command end time 2016-08-29 20:54:25 ========================== Running OS type check... ========================== Command start time 2016-08-29 20:54:25 Cluster primary/cluster OS family is ubuntu14 and local/current OS family is ubuntu14 Connection to 10.8.17.132 closed. SSH command execution finished host=10.8.17.132, exitcode=0 Command end time 2016-08-29 20:54:25 ========================== Checking 'sudo' package on remote host... ========================== Command start time 2016-08-29 20:54:25 sudo install Connection to 10.8.17.132 closed. SSH command execution finished host=10.8.17.132, exitcode=0 Command end time 2016-08-29 20:54:26 ========================== Copying repo file to 'tmp' folder... ========================== Command start time 2016-08-29 20:54:26 /etc/apt/sources.list.d/ambari.list: No such file or directory scp /etc/apt/sources.list.d/ambari.list host=10.8.17.132, exitcode=1 Command end time 2016-08-29 20:54:26 ========================== Moving file to repo dir... ========================== Command start time 2016-08-29 20:54:26 mv: cannot stat ���/var/lib/ambari-agent/tmp/ambari1472504066.list���: No such file or directory Connection to 10.8.17.132 closed. SSH command execution finished host=10.8.17.132, exitcode=1 Command end time 2016-08-29 20:54:26 ========================== Changing permissions for ambari.repo... ========================== Command start time 2016-08-29 20:54:26 chmod: cannot access ���/etc/apt/sources.list.d/ambari.list���: No such file or directory Connection to 10.8.17.132 closed. SSH command execution finished host=10.8.17.132, exitcode=1 Command end time 2016-08-29 20:54:27 ========================== Update apt cache of repository... ========================== Command start time 2016-08-29 20:54:27 Reading package lists... 0% Reading package lists... 0% Reading package lists... 20% Reading package lists... Done Connection to 10.8.17.132 closed. SSH command execution finished host=10.8.17.132, exitcode=0 Command end time 2016-08-29 20:54:27 ========================== Copying setup script file... ========================== Command start time 2016-08-29 20:54:27 scp /usr/lib/python2.6/site-packages/ambari_server/setupAgent.py host=10.8.17.132, exitcode=0 Command end time 2016-08-29 20:54:28 ERROR: Bootstrap of host 10.8.17.132 fails because previous action finished with non-zero exit code (1) ERROR MESSAGE: Execute of '<bound method BootstrapDefault.copyNeededFiles of <BootstrapDefault(Thread-1, started daemon 140149792454400)>>' failed STDOUT: Try to execute '<bound method BootstrapDefault.copyNeededFiles of <BootstrapDefault(Thread-1, started daemon 140149792454400)>>'
Anyone know what I missing here ?
This is on Ambari : 2.2.1.12 & HDP 2.4.2.4-5
Thanks
Created 08-29-2016 10:38 PM
Hi @roy p,
Can you reach the new node from the Ambari server through it's FQDN? If not, check your etc hosts. Can you password-less ssh into the host your trying to add from any of the other hosts already in the cluster?
If you tried that already, check out the suggestions here - https://community.hortonworks.com/questions/10473/can-not-deploy-to-hosts.html
Created 08-31-2016 02:30 PM
I am able to ssh from one of the head node to this new host. If I am providing ssh user & ssh key, then why I need password-less ssh ?
Created 09-01-2016 02:31 AM
I just wanted to confirm you could manually "ssh -i" from the Ambari node to the new and vice versa. To your point, using the ssh key removes the need to provide a password.
I also recommend a yum update or equivalent on the node your trying to add. Ensuring the repos are freshest and packages are the the latest levels (same as the Ambari server).
Created 08-30-2016 04:10 AM
For adding the host
1) Login in to Ambari with admin and go to host.
2) Register the host with Private key (id_rsa) and give user name where you installing from target host
or ssh need to be enabled without password ( normally use "root" or other)
3) By default it will install the clients on new host and do the pre-requisite check.
Created 08-31-2016 02:41 PM
Thats what I am doing.
Created 09-06-2016 12:34 PM
Any luck after updating the yum update and verifying /etc/hosts?