Cloudera Manager agent无法启动,拒绝链接 Failed! trying again in 2 second(s): [Errno 111] Connection refuse
生活随笔
收集整理的這篇文章主要介紹了
Cloudera Manager agent无法启动,拒绝链接 Failed! trying again in 2 second(s): [Errno 111] Connection refuse
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
? ? ?啟動agent節點失敗,提示拒絕連接,百度一下很多人說解決方式是用ps -ef | grep supervisord查看是否有進程,有的話 kill 掉(使用kill -9 會自動拉起進程,使用kill),然后重啟即可,kill掉后依然無法啟動
? ?cloudera-scm-agent.log日志文件報錯如下
[01/Apr/2019 16:46:19 +0000] 97874 MainThread supervisor INFO Trying to connect to supervisor (Attempt 1) [01/Apr/2019 16:46:20 +0000] 97874 MainThread supervisor ERROR Failed! trying again in 2 second(s): [Errno 111] Connection refused Traceback (most recent call last):File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/supervisor.py", line 141, in connectobj = cls(cfg, os_ops_obj)File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/supervisor.py", line 88, in __init__self.identifier = self.__get_supervisor_identification()File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/util/__init__.py", line 531, in new_fnreturn fn(self, *args, **kwargs)File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/supervisor.py", line 379, in __get_supervisor_identificationreturn self.client.supervisor.getIdentification()File "/usr/lib64/python2.7/xmlrpclib.py", line 1233, in __call__return self.__send(self.__name, args)File "/usr/lib64/python2.7/xmlrpclib.py", line 1591, in __requestverbose=self.__verboseFile "/opt/cloudera/cm-agent/lib/python2.7/site-packages/supervisor/xmlrpc.py", line 460, in requestself.connection.request('POST', handler, request_body, self.headers)File "/usr/lib64/python2.7/httplib.py", line 1041, in requestself._send_request(method, url, body, headers)File "/usr/lib64/python2.7/httplib.py", line 1075, in _send_requestself.endheaders(body)File "/usr/lib64/python2.7/httplib.py", line 1037, in endheadersself._send_output(message_body)File "/usr/lib64/python2.7/httplib.py", line 881, in _send_outputself.send(msg)File "/usr/lib64/python2.7/httplib.py", line 843, in sendself.connect()File "/usr/lib64/python2.7/httplib.py", line 824, in connectself.timeout, self.source_address)File "/usr/lib64/python2.7/socket.py", line 571, in create_connectionraise err error: [Errno 111] Connection refused [01/Apr/2019 16:46:22 +0000] 97874 MainThread supervisor INFO Trying to connect to supervisor (Attempt 2) [01/Apr/2019 16:46:23 +0000] 97874 MainThread supervisor ERROR Failed! trying again in 2 second(s): [Errno 111] Connection refused Traceback (most recent call last):File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/supervisor.py", line 141, in connectobj = cls(cfg, os_ops_obj)File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/supervisor.py", line 88, in __init__self.identifier = self.__get_supervisor_identification()File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/util/__init__.py", line 531, in new_fnreturn fn(self, *args, **kwargs)File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/supervisor.py", line 379, in __get_supervisor_identificationreturn self.client.supervisor.getIdentification()File "/usr/lib64/python2.7/xmlrpclib.py", line 1233, in __call__return self.__send(self.__name, args)File "/usr/lib64/python2.7/xmlrpclib.py", line 1591, in __requestverbose=self.__verboseFile "/opt/cloudera/cm-agent/lib/python2.7/site-packages/supervisor/xmlrpc.py", line 460, in requestself.connection.request('POST', handler, request_body, self.headers)File "/usr/lib64/python2.7/httplib.py", line 1041, in requestself._send_request(method, url, body, headers)File "/usr/lib64/python2.7/httplib.py", line 1075, in _send_requestself.endheaders(body)File "/usr/lib64/python2.7/httplib.py", line 1037, in endheadersself._send_output(message_body)File "/usr/lib64/python2.7/httplib.py", line 881, in _send_outputself.send(msg)File "/usr/lib64/python2.7/httplib.py", line 843, in sendself.connect()File "/usr/lib64/python2.7/httplib.py", line 824, in connectself.timeout, self.source_address)File "/usr/lib64/python2.7/socket.py", line 571, in create_connectionraise err error: [Errno 111] Connection refused后續多次嘗試尋找原因為何拒絕連接,發現防火墻開啟了(iptables),關閉后,重啟服務,成功。
總結一下可能出現agent無法啟動的原因
1、Python文件不匹配;參考http://www.cnblogs.com/lion.net/archive/2014/09/02/3950619.html中_io的設置 2、日志文件不存在,在config.ini中把log_file放開 3、/etc/hosts/中主機和ip配置問題 4、防火墻是否關閉,(iptables/firewall) 5、端口配置,config.ini中端口是否配置的為7182 6、集群時間是否同步,安裝ntp同步時間根據這次問題發現,異常后只提示連接拒絕,無具體說明,所以防火墻如果必須開啟,請注意各端口開放情況,否則異常排查較為麻煩
?
?
?
總結
以上是生活随笔為你收集整理的Cloudera Manager agent无法启动,拒绝链接 Failed! trying again in 2 second(s): [Errno 111] Connection refuse的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 视觉算法算法
- 下一篇: ninja: error: 'LIBSO