Confirm 一直是failed
错误日志如下:
Command start time 2019-02-20 14:43:54
("INFO 2019-02-20 14:44:01,232 HeartbeatHandlers.py:116 - Stop event received
INFO 2019-02-20 14:44:01,232 NetUtil.py:130 - Stop event received
INFO 2019-02-20 14:44:01,232 ExitHelper.py:56 - Performing cleanup before exiting...
INFO 2019-02-20 14:44:01,232 ExitHelper.py:70 - Cleanup finished, exiting with code:0
INFO 2019-02-20 14:44:02,427 main.py:283 - Agent died gracefully, exiting.
INFO 2019-02-20 14:44:02,427 ExitHelper.py:56 - Performing cleanup before exiting...
INFO 2019-02-20 14:44:03,067 main.py:145 - loglevel=logging.INFO
INFO 2019-02-20 14:44:03,067 main.py:145 - loglevel=logging.INFO
INFO 2019-02-20 14:44:03,067 main.py:145 - loglevel=logging.INFO
INFO 2019-02-20 14:44:03,068 DataCleaner.py:39 - Data cleanup thread started
INFO 2019-02-20 14:44:03,070 DataCleaner.py:120 - Data cleanup started
INFO 2019-02-20 14:44:03,070 DataCleaner.py:122 - Data cleanup finished
INFO 2019-02-20 14:44:03,070 hostname.py:67 - agent:hostname_script configuration not defined thus read hostname 'qujianlei' using socket.getfqdn().
INFO 2019-02-20 14:44:03,105 PingPortListener.py:50 - Ping port listener started on port: 8670
INFO 2019-02-20 14:44:03,107 main.py:437 - Connecting to Ambari server at https://qujianlei:8440 (公网ip)
INFO 2019-02-20 14:44:03,107 NetUtil.py:70 - Connecting to https://qujianlei:8440/ca
ERROR 2019-02-20 14:44:03,114 NetUtil.py:96 - EOF occurred in violation of protocol (_ssl.c:618)
ERROR 2019-02-20 14:44:03,114 NetUtil.py:97 - SSLError: Failed to connect. Please check openssl library versions.
Refer to: https://bugzilla.redhat.com/show_bug.cgi?id=1022468 for more details.
WARNING 2019-02-20 14:44:03,114 NetUtil.py:124 - Server at https://qujianlei:8440 is not reachable, sleeping for 10 seconds...
", None)
解决方案:
1.ERROR 2019-02-20 14:44:03,114 NetUtil.py:96 - EOF occurred in violation of protocol (_ssl.c:618) 2.ERROR 2019-02-20 14:44:03,114 NetUtil.py:97 - SSLError: Failed to connect. Please check openssl library versions.
1.需要修改每个机器上的ambari-agent.ini文件,需要在security下面添加一行: 编辑文件:vi /etc/ambari-agent/conf/ambari-agent.ini force_https_protocol = PROTOCOL_TLSv1_2 2.看着是openssl问题 但实际上应该是python版本原因 因为python2.7.5以上的版本增加了版本验证 需要降低python版本或者关闭证书验证: vi /etc/python/cert-verification.cfg [https] verify=disable 如果python版本低于2.7.5,请尝试更新openssl