[Hadoop] How to solve Permission error that is occurred on the server while adding new Ambari hosts.
2020. 2. 12. 18:18ㆍIT/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.
'IT > Linux' 카테고리의 다른 글
[php] How to Upgrade PHP 5.4 to PHP 7.0 on CentOS 7.8 (0) | 2020.08.14 |
---|---|
[vsftpd] chroot를 설정하는 4가지 방법 (0) | 2020.07.30 |
[명령어] tar를 이용한 빠른 파일 복사(cp, rsync) (0) | 2020.03.10 |
[명령어] ln, 심볼릭 링크 경로 변경 (0) | 2020.03.09 |
[Hadoop] How to troubleshoot Ambari Server error that is related to SSL that occurred on the server while adding new Ambari hosts. (0) | 2020.02.12 |