Created 02-23-2016 03:51 PM
I am trying to add two more hosts to my existing cluster (only has one right now) but I am running into errors during the Ambari step - Confirm Hosts. The error message is shown below. It says it failed because it finished with a non zero exit code. What does this mean and how can I fix it? I have followed the steps to configure passwordless ssh but I may have done something incorrectly. I have replace the host name with a bunch of x's.
========================== Creating target directory... ========================== Command start time 2016-02-23 10:45:50 Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password). SSH command execution finished host=xxxxxxxxxxxxxxxxxxxxx, exitcode=255 Command end time 2016-02-23 10:45:51 ERROR: Bootstrap of host xxxxxxxxxxxxxxxxxxxx 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).
Created 02-23-2016 03:58 PM
This is related to your ssh keys
Make sure that you test this
ssh localhost
if it asks for password then
cd ~/.ssh
cat id_rsa.pub >> authorized_keys
ssh localhost
Created 02-23-2016 03:55 PM
make sure permissions on the public key are set as per the documentation. You can also manually install the ambari agent. Copy the ambari.repo file from a working machine to this machine and put in /etc/yum.repos.d/
double check that server is set to ambari server in /etc/ambari-agent/ambari-agent.ini
then ambari-agent start and try your registration process again.
Created 02-24-2016 01:37 PM
Created 02-24-2016 02:14 PM
I have seen that file before and just double checked to ensure all the servers are in the list.
Created 02-23-2016 03:58 PM
This is related to your ssh keys
Make sure that you test this
ssh localhost
if it asks for password then
cd ~/.ssh
cat id_rsa.pub >> authorized_keys
ssh localhost
Created 02-23-2016 04:00 PM
This can save you lot of time http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.0.0/bk_Installing_HDP_AMB/content/_set_up_passwo...
you can set up the ssh keys between ambari server and new nodes
or
You can use this in case you dont want to setup ssh keys
Its for 2.1.0 and same for 2.2.0
Created on 02-23-2016 04:55 PM - edited 08-18-2019 05:32 AM
I noticed I hadn't set up passwordless ssh between the two I am setting up and that helped but now there's another error. The servers I have are not configured for DNS (will be soon) and are only accessible via IP address. Would this be a factor during setup?
Below xxxxxx(#) represents the FQDN and the specific server its referencing in parentheses
Created 02-23-2016 04:58 PM
@Mark Thorson Yes, please do not use IP for the host config. You can levergae /etc/hosts but I suggest to wait for the DNS
Created 02-24-2016 01:27 AM
@Mark Thorson How did it go?
Created 02-24-2016 01:31 AM
Still waiting on the DNS to be set up. I will update once work has been completed and I try adding the nodes.