分享

cloudera agent 无法启动

grinsky 发表于 2017-8-18 13:05:00 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 2 11458
系统版本:CentOS Linux release 7.3.1611 (Core)
CDH 版本:5.12.0

有一台机器装了桌面环境,在启动桌面环境下,启动cloudera-scm-agent时虽然提示启动成功,但马上就退出了。日志如下:
[mw_shl_code=bash,true][18/Aug/2017 11:38:15 +0000] 2604 MainThread agent        INFO     Re-using pre-existing directory: /run/cloudera-scm-agent/flood
[18/Aug/2017 11:38:15 +0000] 2604 MainThread agent        INFO     Re-using pre-existing directory: /run/cloudera-scm-agent/supervisor/include
[18/Aug/2017 11:38:15 +0000] 2604 MainThread agent        ERROR    Failed to connect to previous supervisor.
Traceback (most recent call last):
  File "/usr/lib64/cmf/agent/build/env/lib/python2.7/site-packages/cmf-5.12.0-py2.7.egg/cmf/agent.py", line 2109, in find_or_start_supervisor
    self.configure_supervisor_clients()
  File "/usr/lib64/cmf/agent/build/env/lib/python2.7/site-packages/cmf-5.12.0-py2.7.egg/cmf/agent.py", line 2290, in configure_supervisor_clients
    supervisor_options.realize(args=["-c", os.path.join(self.supervisor_dir, "supervisord.conf")])
  File "/usr/lib64/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/lib64/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/lib64/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/lib64/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/lib64/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
[18/Aug/2017 11:38:15 +0000] 2604 Dummy-1 daemonize    WARNING  Stopping daemon.
[18/Aug/2017 11:38:15 +0000] 2604 Dummy-1 agent        INFO     Stopping agent...
[18/Aug/2017 11:38:15 +0000] 2604 Dummy-1 agent        INFO     No extant cgroups; unmounting any cgroup roots
[/mw_shl_code]

其它几台没有装桌面环境,都启动正常,怀疑是桌面环境的问题,我就把这台出问题的启动级别设置成3  systemctl set-default  multi-user.target

然后重启后,在启动cloudera-scm-agent就能正常启动了。所以可以确定是和桌面环境有关。
但这台是需要用到桌面环境,这个怎么处理呢?
我 yum update 后还是有这个问题,难道要等cloudera更新?

已有(2)人评论

跳转到指定楼层
yaojiank 发表于 2017-8-18 14:30:58
换个桌面系统试试
回复

使用道具 举报

ludevica 发表于 2017-8-18 15:38:51
我用的cm-5.9.1版本的。和你的情况有点类似,agent通过service启动后,也显示正常,但是就是没进程。cloudera-scm-agent.log日都没生成出来
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条