Support Questions

Find answers, ask questions, and share your expertise

add new host into the cluster

avatar
Master Collaborator

Hi:

During the process to add the new host,I have received this error:

==========================
Creating target directory...
==========================

Command start time 2016-08-23 13:26:35

Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
SSH command execution finished
host=xxxxxx, exitcode=255
Command end time 2016-08-23 13:26:35

ERROR: Bootstrap of host xxxxxx 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).





1 ACCEPTED SOLUTION

avatar
Contributor

copy the public key of the ambari host to the node you are adding in the .ssh/authorized_keys and also vice versa to allow the password less authentication between the two hosts and then try register the host again.

View solution in original post

6 REPLIES 6

avatar
Contributor

copy the public key of the ambari host to the node you are adding in the .ssh/authorized_keys and also vice versa to allow the password less authentication between the two hosts and then try register the host again.

avatar
Master Collaborator

Hi: its work now, but i have another error:

==========================
Copying setup script file...
==========================

Command start time 2016-08-24 08:44:04

scp /usr/lib/python2.6/site-packages/ambari_server/setupAgent.py
host=xxxxx, exitcode=0
Command end time 2016-08-24 08:44:04

ERROR: Bootstrap of host xxxxxxx 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 140488403556096)>>' failed
STDOUT: Try to execute '<bound method BootstrapDefault.copyNeededFiles of <BootstrapDefault(Thread-1, started daemon 140488403556096)>>'

avatar
Expert Contributor
@Roberto Sancho

The second issue is caused by the ambari repo file name. Please ensure the repo file name is ambari.repo

avatar
Master Collaborator

now its working, thanks

avatar
Contributor

Hi @Roberto Sancho

Can you please post complete message? It is complaining about the previous action. Are there any messages before these lines ?

avatar
Master Collaborator

Look like the keyless ssh is not setup properly, check the document at

http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.2.0/bk_Installing_HDP_AMB/content/_set_up_passwo...

Or install Ambari agent manually