ITPub博客

首页 > 大数据 > 数据分析 > CDH5之Exhausted available authentication methods

CDH5之Exhausted available authentication methods

原创 数据分析 作者:hackeruncle 时间:2016-04-05 20:08:41 0 删除 编辑
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/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
主要从事大数据平台产品的技术工作; 负责基于Spark、Flink生产开发及性能调优; 负责对公司的集群的部署、监控、调优和运营; 主导我司的数据平台0到1及实时中间件项目开发; 此外,精通Java、Shell、Python编程; 且荣获2016年IBM的Spark大赛全球第四名,中国区域第一名。

注册时间:2015-01-03

  • 博文量
    187
  • 访问量
    341716