前段時間公司搭建hdp的大數據管理平台。今天又有人遇到了。今天在這里記錄一下。在安裝的過程當中遇到的問題如下:
ERROR 2018-02-27 16:29:23,891 NetUtil.py:93 - [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:579)
ERROR 2018-02-27 16:29:23,891 NetUtil.py:94 - SSLError: Failed to connect. Please check openssl library versions.
看到這樣的錯誤給人的第一感覺好像是OpenSSL需要升級。其實不然,我們需要看的是第一個error的描述。好像是證書認證失敗。
最后找到相關的解決方法。
原因如下:
(1)方法一:
所有節點ambari-agent.ini的[security]增加force_https_protocol
# cd /etc/ambari-agent/conf
# vi ambari-agent.ini
找到[security],增加:force_https_protocol=PROTOCOL_TLSv1_2
(2) 方法二:
所有節點關閉python的安全認證
# vi /etc/python/cert-verification.cfg
verify=platform_default修改為verify=disable
最后,重啟ambari-server服務、重啟所有節點的ambari-agent服務。
好像最終起作用的是第二種方法。
詳細鏈接如下:
https://community.hortonworks.com/questions/121978/openssl-compatibility.html?childToView=138080#answer-138080
https://community.hortonworks.com/questions/145/openssl-error-upon-host-registration.html
https://community.hortonworks.com/questions/24208/help-ambari-agent-registe-fail-with-netutilpy77-er.html