天天看點

CDH5之Exhausted available authentication methods

1.機器環境:

前幾天,要在 阿裡環境裝兩套CDH的産品環境,其中一套CDH5在安裝過程就抛錯"Exhausted available authentication methods"

其中的抛錯的機器是運維從stage環境機器上,copy的鏡像做的新的機器。

2.在哪步出錯:

在安裝CDH5過程中,輸完hadoop使用者和密碼的下一步(叢集安裝),web開始重新整理資料源抛錯: Exhausted available authentication methods

CDH5之Exhausted available authentication methods

#由于當時沒有截圖,事後在某貼上找的圖檔

3.解決方案:

a.檢查hadoop使用者是否配置sudo無密碼權限成功???

點選(此處)折疊或打開

[root@alish1-xxx-01 ~]# adduser hadoop

 [root@alish1-xxx-01 ~]# passwd hadoop

Changing password for user hadoop.

New password:

BAD PASSWORD: it is too short

BAD PASSWORD: is too simple

Retype new password:

passwd: all authentication tokens updated successfully.

[root@alish1-logshedcldmanager-01 etc]# vi /etc/sudoers

## Allow root to run any commands anywhere

root ALL=(ALL) ALL

hadoop ALL=(root)NOPASSWD:ALL

###驗證sudo權限

[root@alish1-xxx-01 etc]# sudo su hadoop

[hadoop@alish1-logshedcldmanager-01 ~]$ sudo ls -l /root

total 4

-rw------- 1 root root 8 Apr 2 09:45 dead.letter

b.檢查ssh服務是否正常???

[root@alish1-xxx-01 ~]# service sshd restart

Stopping sshd: [ OK ]

Starting sshd: [ OK ]

#直接重新開機服務,然後單擊"重試",就ok了.

4.參考備注:

Try using SSH from the command line of another host and use the same user that 

you are entering in the installation wizard to attempt to authenicate to one of the nodes you are attempting to add to the cluster.

- if you are using "root" then ssh as "root" is disabled by default on some OSes... you might check that.

- if you are using a non-root user, then verify that sudo, you might need to configure your sudoers with something like "userid   ALL=(ALL)NOPASSWD:ALL"

繼續閱讀