Confirm 一直是failed
錯(cuò)誤日志如下:
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 (公網(wǎng)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.需要修改每個(gè)機(jī)器上的ambari-agent.ini文件,需要在security下面添加一行: 編輯文件:vi /etc/ambari-agent/conf/ambari-agent.ini force_https_protocol = PROTOCOL_TLSv1_2 2.看著是openssl問(wèn)題 但實(shí)際上應(yīng)該是python版本原因 因?yàn)閜ython2.7.5以上的版本增加了版本驗(yàn)證 需要降低python版本或者關(guān)閉證書(shū)驗(yàn)證: vi /etc/python/cert-verification.cfg [https] verify=disable 如果python版本低于2.7.5,請(qǐng)嘗試更新openssl
?
?