CDH5之Exhausted available authentication methods

hackeruncle發表於2016-04-05
1.機器環境:
前幾天,要在 阿里環境裝兩套CDH的產品環境,其中一套CDH5在安裝過程就拋錯"Exhausted available authentication methods"
其中的拋錯的機器是運維從stage環境機器上,copy的映象做的新的機器。

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

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

3.解決方案:
a.檢查hadoop使用者是否配置sudo無密碼許可權成功???

點選(此處)摺疊或開啟

  1. [root@alish1-xxx-01 ~]# adduser hadoop
  2.  [root@alish1-xxx-01 ~]# passwd hadoop
  3. Changing password for user hadoop.
  4. New password:
  5. BAD PASSWORD: it is too short
  6. BAD PASSWORD: is too simple
  7. Retype new password:
  8. passwd: all authentication tokens updated successfully.

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

  10. ## Allow root to run any commands anywhere
  11. root ALL=(ALL) ALL

  12. hadoop ALL=(root)NOPASSWD:ALL

  13. ###驗證sudo許可權
  14. [root@alish1-xxx-01 etc]# sudo su hadoop
  15. [hadoop@alish1-logshedcldmanager-01 ~]$ sudo ls -l /root
  16. total 4
  17. -rw------- 1 root root 8 Apr 2 09:45 dead.letter

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

點選(此處)摺疊或開啟

  1. [root@alish1-xxx-01 ~]# service sshd restart
  2. Stopping sshd: [ OK ]
  3. 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"

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30089851/viewspace-2075759/,如需轉載,請註明出處,否則將追究法律責任。

相關文章