系统版本: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更新?
|