[Hadoop] How to solve Permission error that is occurred on the server while adding new Ambari hosts.

2020. 2. 12. 18:18IT/Linux

[Hadoop]

While adding new Ambari host using automated Install, the following error occurred on the Ambari Server:

	Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
	SSH command execution finished
	host=MYHOSTNAME.MYDOMAIN, exitcode=255
	Command end time 2020-02-11 17:57:40

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

 

Resolution process:


To solve the problem, we need the public key of the Ambari server, so we will get the key from the server to the client.

[Ambari Agent]
The following command will run from the root home directory.

# scp root@SERVER_HOSTNAME.MYDOMAIN:~/id_rsa.pub $HOME/
 : Enter the password of Ambari Server's root
# cat $HOME/id_rsa.pub >> $HOME/.ssh/authorized_keys

[Ambari Server]
And then, we can solve the problem using file 'id_rsa' of Ambari server when install options.