Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password) when Startup NameNode Service

Error Message

[hadoop@bgdttest01 sbin]$ ./start-dfs.sh
Starting namenodes on [bgdttest01]
bgdttest01: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
Starting datanodes
bgdttest02: datanode is running as process 4716. Stop it first.
bgdttest03: datanode is running as process 4864. Stop it first.
Starting secondary namenodes [bgdttest01.sys.local]
bgdttest01.sys.local: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).

Solution:

Set up passwordless SSH for NameNode itself.

[hadoop@bgdttest01 sbin]$ ssh-copy-id -i ~/.ssh/id_rsa.pub hadoop@bgdttest01
/bin/ssh-copy-id: INFO: Source of key(s) to be installed: “/home/hadoop/.ssh/id_rsa.pub”
/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed — if you are prompted now it is to install the new keys
hadoop@bgdttest01’s password:

Number of key(s) added: 1

Now try logging into the machine, with: “ssh ‘hadoop@bgdttest01′”
and check to make sure that only the key(s) you wanted were added.

[hadoop@bgdttest01 sbin]$ ./start-dfs.sh
Starting namenodes on [bgdttest01.sys.local]
Starting datanodes
Starting secondary namenodes [bgdttest01.sys.local]
[hadoop@bgdttest01 sbin]$ jps
6611 SecondaryNameNode
6742 Jps
6381 NameNode

Bir cevap yazın

E-posta hesabınız yayımlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir