CDH5之Exhausted available authentication methods

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/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/30089851/viewspace-2075759/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值