在大數據管理平台HDP的ambria的時候遇到python的安全認證的問題


前段時間公司搭建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

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM