天天看點

Ambari學習8_NetUtil.py:79 - SSLError: Failed to connect. Please check openssl library versions.

安裝Ambari過程中,出現錯誤,檢視提示,也隻是:

Registering with the server...
Registration with the server failed.
           

無奈,去檢視日志,日志位置:/var/log/ambari-agent/ambari-agent.log,

使用vim指令打開,使用Shift+g定位到最後一行,檢視内容,

ERROR 2016-11-10 17:45:36,578 NetUtil.py:78 - [Errno 1] _ssl.c:492: error:100AE081:elliptic curve routines:EC_GROUP_new_by_curve_name:unknown group
ERROR 2016-11-10 17:45:36,578 NetUtil.py:79 - SSLError: Failed to connect. Please check openssl library versions.
Refer to: https://bugzilla.redhat.com/show_bug.cgi?id=1022468 for more details.
WARNING 2016-11-10 17:45:36,578 NetUtil.py:106 - Server at https://slave1:8440 is not reachable, sleeping for 10 seconds...
INFO 2016-11-10 17:45:46,578 NetUtil.py:60 - Connecting to https://slave1:8440/ca
ERROR 2016-11-10 17:45:46,635 NetUtil.py:78 - [Errno 1] _ssl.c:492: error:100AE081:elliptic curve routines:EC_GROUP_new_by_curve_name:unknown group
ERROR 2016-11-10 17:45:46,635 NetUtil.py:79 - SSLError: Failed to connect. Please check openssl library versions.
Refer to: https://bugzilla.redhat.com/show_bug.cgi?id=1022468 for more details.
WARNING 2016-11-10 17:45:46,635 NetUtil.py:106 - Server at https://slave1:8440 is not reachable, sleeping for 10 seconds...
INFO 2016-11-10 17:45:53,676 main.py:68 - loglevel=logging.INFO
INFO 2016-11-10 17:45:56,635 NetUtil.py:60 - Connecting to https://slave1:8440/ca
           

尋找NetUtil.py:79 - SSLError: Failed to connect. Please check openssl library versions.錯誤的原因,發現是openssl的版本過舊,

yum install openssl更新後,錯誤部分得到解決。

參考:https://martin.atlassian.net/wiki/pages/viewpage.action?pageId=23494834

繼續閱讀