CDH集群启动时报ERROR Failed to connect to previous supervisor

报错如下:

MainThread agent ERROR Failed to connect to previous supervisor.
Traceback (most recent call last):
File “/opt/cm-5.7.1/lib64/cmf/agent/build/env/lib/python2.6/site-packages/cmf-5.7.1-py2.6.egg/cmf/agent.py”, line 2037, in find_or_start_supervisor
self.get_supervisor_process_info()
File “/opt/cm-5.7.1/lib64/cmf/agent/build/env/lib/python2.6/site-packages/cmf-5.7.1-py2.6.egg/cmf/agent.py”, line 2183, in get_supervisor_process_info
self.identifier = self.supervisor_client.supervisor.getIdentification()
File “/usr/lib64/python2.6/xmlrpclib.py”, line 1199, in call
return self.__send(self.__name, args)
File “/usr/lib64/python2.6/xmlrpclib.py”, line 1489, in __request
verbose=self.__verbose
File “/opt/cm-5.7.1/lib64/cmf/agent/build/env/lib/python2.6/site-packages/supervisor-3.0-py2.6.egg/supervisor/xmlrpc.py”, line 460, in request
self.connection.request(‘POST’, handler, request_body, self.headers)
File “/usr/lib64/python2.6/httplib.py”, line 936, in request
self._send_request(method, url, body, headers)
File “/usr/lib64/python2.6/httplib.py”, line 973, in _send_request
self.endheaders()
File “/usr/lib64/python2.6/httplib.py”, line 930, in endheaders
self._send_output()
File “/usr/lib64/python2.6/httplib.py”, line 802, in _send_output
self.send(msg)
File “/usr/lib64/python2.6/httplib.py”, line 761, in send
self.connect()
File “/usr/lib64/python2.6/httplib.py”, line 742, in connect
self.timeout)
File “/usr/lib64/python2.6/socket.py”, line 567, in create_connection
raise error, msg
error: [Errno 111] Connection refused

通常说是hostname和ip没有对应上
查看了 /etc/hosts hostname /etc/networks /etc/sysconfig/network都是配置正常

后来有解释说,是因为服务器重启后,再启动agent就报这个错误,除非删掉主机重新配置集群

supervisor重启有残留配置在,需要清空对应的文件,再重启才有效

最后解决方案:

1、 找到supervisor

ps aux|grep super

2、杀掉进程supervisord

kill -9 supervisor进程号

3、重启cloudera-scm-agent

service cloudera-scm-agent start

问题解决,cloudera-scm-agent运行正常

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值