Support Questions

Find answers, ask questions, and share your expertise
Announcements
Welcome to the upgraded Community! Read this blog to see What’s New!

add new host into the cluster

avatar
Super 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
Explorer

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
Explorer

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
Super 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
Rising Star
@Roberto Sancho

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

avatar
Super Collaborator

now its working, thanks

avatar
Explorer

Hi @Roberto Sancho

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

avatar
Expert Contributor

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

Labels