cdh5安装报错解决

1、Exhausted available authentication methods

ubuntu未激活root用户,或者激活root用户后未允许可远程登录root 用户

参考stackoverflow:Cloudera Manager Failed to authenticate : Exhausted available authentication methods

Let's consolidate everything in one post:

Default, Root user is locked in ubuntu/Linux.To unlock, first need to reset password. It asks for Password twice.

$ sudo passwd root
 Enter UNIX password:
 Retype UNIX password:

Unlock root user

$ sudo passwd -u root

Open /etc/ssh/sshd_config in an editor:

sudo nano /etc/ssh/sshd_config

In the file now look for PermitRootLogin without-password and replace it with this

PermitRootLogin yes

Restart SSH service

sudo service ssh restart
测试能否远程登录root用户及解决方案:

Exhausted available authentication methods

相关链接:ubuntu首次给root用户设置密码

关于Ubuntu拒绝root用户ssh远程登录

2、安装失败。 无法接收 Agent 发出的检测信号

/var/log/cloudera-scm-agent/ 中的错误日志如下:

[22/Apr/2018 22:23:00 +0000] 17968 MainThread agent        ERROR    Failed to connect to previous supervisor.
Traceback (most recent call last):
  File "/usr/lib/cmf/agent/build/env/lib/python2.7/site-packages/cmf-5.14.2-py2.7.egg/cmf/agent.py", line 2136, in find_or_start_supervisor
    self.configure_supervisor_clients()
  File "/usr/lib/cmf/agent/build/env/lib/python2.7/site-packages/cmf-5.14.2-py2.7.egg/cmf/agent.py", line 2317, in configure_supervisor_clients
    supervisor_options.realize(args=["-c", os.path.join(self.supervisor_dir, "supervisord.conf")])
  File "/usr/lib/cmf/agent/build/env/lib/python2.7/site-packages/supervisor-3.0-py2.7.egg/supervisor/options.py", line 1599, in realize
    Options.realize(self, *arg, **kw)
  File "/usr/lib/cmf/agent/build/env/lib/python2.7/site-packages/supervisor-3.0-py2.7.egg/supervisor/options.py", line 333, in realize
    self.process_config()
 File "/usr/lib/cmf/agent/build/env/lib/python2.7/site-packages/supervisor-3.0-py2.7.egg/supervisor/options.py", line 341, in process_config
    self.process_config_file(do_usage)
  File "/usr/lib/cmf/agent/build/env/lib/python2.7/site-packages/supervisor-3.0-py2.7.egg/supervisor/options.py", line 376, in process_config_file
    self.usage(str(msg))
  File "/usr/lib/cmf/agent/build/env/lib/python2.7/site-packages/supervisor-3.0-py2.7.egg/supervisor/options.py", line 164, in usage
    self.exit(2)
SystemExit: 2


可能原因:

 Ensure that the host's hostname is configured properly.

 /etc/hosts下的ip配置必须采用FQDN

如果是centOS系统,查看 /etc/hosts 和 /etc/sysconfig/network 下的配置是否一致

如果是ubuntu系统,查看 /etc/hosts 和 /etc/hostname 下的配置是否一致

修改hostname后,重新修改root用户的免密码登录自身ssh localhost(需要?如果需要cdh还要知道登录root用户的密码干嘛?)

cdh大概是因为在操作中使用ssh登录root用户时查找当前主机的主机名,发现它是lizhifeng-Lenovo-g400,

登录后的roo用户模式为root@lizhifeng-Lenovo-g400,与以下设定的主机名称相悖。


为什么要求FQDN?因为FQDN就是把主机名配到域名中,作为域名的一部分。这样就不会出现主机名配置不正确的问题

解决办法:linux设置FQDN

Installation failed. Failed to receive heartbeat from agent

CDH5.3.6离线安装手册



3、在安装过程中,一直停在activating状态

log日志如下:

Monitor-HostMonitor throttling_logger ERROR    Failed to collect NTP metrics
Traceback (most recent call last):

安装cdh前先安装ntp

OSError: [Errno 2] No such file or directory
[23/Apr/2018 19:26:25 +0000] 2373 Monitor-HostMonitor throttling_logger ERROR    Timed out waiting for worker process collecting filesystem usage to complete. This may occur if the host has an NFS or other remote filesystem that is not responding to requests in a timely fashion. Current nodev filesystems: /run,/dev/shm,/run/lock,/sys/fs/cgroup,/run/user/108,/run/user/0,/run/user/1000,/run/cloudera-scm-agent/process
[23/Apr/2018 19:28:55 +0000] 2373 MainThread agent        INFO     Stopping agent...


[23/Apr/2018 20:43:37 +0000] 5921 Thread-13 https        ERROR    Failed to retrieve/stroe URL: http://master.cdh.com:7180/cmf/parcel/download/CDH-5.14.2-1.cdh5.14.2.p0.3-xenial.parcel.torrent -> /opt/cloudera/parcel-cache/CDH-5.14.2-1.cdh5.14.2.p0.3-xenial.parcel.torrent <urlopen error timed out>



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值