CentOS5/6/7系統下搭建安裝Amabari大資料叢集時出現SSLError: Failed to connect. Please check openssl library versions.錯誤的解決辦法(圖文詳解)
不多說,直接上乾貨!
========================== Creating target directory... ========================== Command start time 2018-07-26 13:16:52 Connection to cetc12 closed. SSH command execution finished host=cetc12, exitcode=0 Command end time2018-07-26 13:16:52 ========================== Copying ambari sudo script... ========================== Command start time 2018-07-26 13:16:52 scp /var/lib/ambari-server/ambari-sudo.sh host=cetc12, exitcode=0 Command end time 2018-07-26 13:16:53 ========================== Copying common functions script...========================== Command start time 2018-07-26 13:16:53 scp /usr/lib/ambari-server/lib/ambari_commons host=cetc12, exitcode=0 Command end time 2018-07-26 13:16:53 ========================== Copying create-python-wrap script... ========================== Command start time 2018-07-26 13:16:53 scp /var/lib/ambari-server/create-python-wrap.sh host=cetc12, exitcode=0 Command end time 2018-07-26 13:16:53 ========================== Copying OS type check script... ========================== Command start time 2018-07-26 13:16:53 scp /usr/lib/ambari-server/lib/ambari_server/os_check_type.py host=cetc12, exitcode=0 Command end time 2018-07-26 13:16:53 ========================== Running create-python-wrap script... ========================== Command start time 2018-07-26 13:16:53 Connection to cetc12 closed. SSH command execution finished host=cetc12, exitcode=0 Command end time 2018-07-26 13:16:53 ========================== Running OS type check... ========================== Command start time 2018-07-26 13:16:53 Cluster primary/cluster OS family is redhat7 and local/current OS family is redhat7 Connection to cetc12 closed. SSH command execution finished host=cetc12, exitcode=0 Command end time 2018-07-26 13:16:54 ========================== Checking 'sudo' package on remote host... ========================== Command start time 2018-07-26 13:16:54 Connection to cetc12 closed. SSH command execution finished host=cetc12, exitcode=0 Command end time 2018-07-26 13:16:54 ========================== Copying repo file to 'tmp' folder... ========================== Command start time 2018-07-26 13:16:54 scp /etc/yum.repos.d/ambari.repo host=cetc12, exitcode=0 Command end time 2018-07-26 13:16:54 ========================== Moving file to repo dir... ========================== Command start time 2018-07-26 13:16:54 Connection to cetc12 closed. SSH command execution finished host=cetc12, exitcode=0 Command end time 2018-07-26 13:16:54 ========================== Changing permissions for ambari.repo... ========================== Command start time 2018-07-26 13:16:54 Connection to cetc12 closed. SSH command execution finished host=cetc12, exitcode=0 Command end time 2018-07-26 13:16:54 ========================== Copying setup script file... ========================== Command start time 2018-07-26 13:16:54 scp /usr/lib/ambari-server/lib/ambari_server/setupAgent.py host=cetc12, exitcode=0 Command end time 2018-07-26 13:16:55 ========================== Running setup agent script... ========================== Command start time 2018-07-26 13:16:55 ("INFO 2018-07-26 13:17:06,791 HeartbeatHandlers.py:116 - Stop event received INFO 2018-07-26 13:17:06,792 NetUtil.py:130 - Stop event received INFO 2018-07-26 13:17:06,792 ExitHelper.py:56 - Performing cleanup before exiting... INFO 2018-07-26 13:17:06,792 ExitHelper.py:70 - Cleanup finished, exiting with code:0 INFO 2018-07-26 13:17:09,636 main.py:285 - Agent died gracefully, exiting. INFO 2018-07-26 13:17:09,637 ExitHelper.py:56 - Performing cleanup before exiting... INFO 2018-07-26 13:17:10,223 main.py:147 - loglevel=logging.INFO INFO 2018-07-26 13:17:10,224 main.py:147 - loglevel=logging.INFO INFO 2018-07-26 13:17:10,224 main.py:147 - loglevel=logging.INFO INFO 2018-07-26 13:17:10,225 DataCleaner.py:39 - Data cleanup thread started INFO 2018-07-26 13:17:10,227 DataCleaner.py:120 - Data cleanup started INFO 2018-07-26 13:17:10,228 DataCleaner.py:122 - Data cleanup finished INFO 2018-07-26 13:17:10,228 hostname.py:67 - agent:hostname_script configuration not defined thus read hostname 'cetc12' using socket.getfqdn(). INFO 2018-07-26 13:17:10,331 PingPortListener.py:50 - Ping port listener started on port: 8670 INFO 2018-07-26 13:17:10,334 main.py:439 - Connecting to Ambari server at https://cetc13:8440 (172.10.10.173) INFO 2018-07-26 13:17:10,335 NetUtil.py:70 - Connecting to https://cetc13:8440/ca ERROR 2018-07-26 13:17:10,340 NetUtil.py:96 - EOF occurred in violation of protocol (_ssl.c:579) ERROR 2018-07-26 13:17:10,340 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 2018-07-26 13:17:10,341 NetUtil.py:124 - Server at https://cetc13:8440 is not reachable, sleeping for 10 seconds... ", None) ("INFO 2018-07-26 13:17:06,791 HeartbeatHandlers.py:116 - Stop event received INFO 2018-07-26 13:17:06,792 NetUtil.py:130 - Stop event received INFO 2018-07-26 13:17:06,792 ExitHelper.py:56 - Performing cleanup before exiting... INFO 2018-07-26 13:17:06,792 ExitHelper.py:70 - Cleanup finished, exiting with code:0 INFO 2018-07-26 13:17:09,636 main.py:285 - Agent died gracefully, exiting. INFO 2018-07-26 13:17:09,637 ExitHelper.py:56 - Performing cleanup before exiting... INFO 2018-07-26 13:17:10,223 main.py:147 - loglevel=logging.INFO INFO 2018-07-26 13:17:10,224 main.py:147 - loglevel=logging.INFO INFO 2018-07-26 13:17:10,224 main.py:147 - loglevel=logging.INFO INFO 2018-07-26 13:17:10,225 DataCleaner.py:39 - Data cleanup thread started INFO 2018-07-26 13:17:10,227 DataCleaner.py:120 - Data cleanup started INFO 2018-07-26 13:17:10,228 DataCleaner.py:122 - Data cleanup finished INFO 2018-07-26 13:17:10,228 hostname.py:67 - agent:hostname_script configuration not defined thus read hostname 'cetc12' using socket.getfqdn(). INFO 2018-07-26 13:17:10,331 PingPortListener.py:50 - Ping port listener started on port: 8670 INFO 2018-07-26 13:17:10,334 main.py:439 - Connecting to Ambari server at https://cetc13:8440 (172.10.10.173) INFO 2018-07-26 13:17:10,335 NetUtil.py:70 - Connecting to https://cetc13:8440/ca ERROR 2018-07-26 13:17:10,340 NetUtil.py:96 - EOF occurred in violation of protocol (_ssl.c:579) ERROR 2018-07-26 13:17:10,340 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 2018-07-26 13:17:10,341 NetUtil.py:124 - Server at https://cetc13:8440 is not reachable, sleeping for 10 seconds... ", None) Connection to cetc12 closed. SSH command execution finished host=cetc12, exitcode=0 Command end time 2018-07-26 13:17:12 Registering with the server... Registration with the server failed.
[[email protected] lib64]# rpm -qa | grep openssl openssl-libs-1.0.2k-12.el7.x86_64 xmlsec1-openssl-1.2.20-7.el7_4.x86_64 openssl-1.0.2k-12.el7.x86_64
解決辦法1:
地址:http://stackoverflow.com/questions/38423925/ambari-confirm-hosts-step-fails-registration-with-the-server-failed
說明:中文和英文作業系統版本問題,中文作業系統出錯,英文則成功;
Hey,thank both of you.i got it.The character in China is UTF8,and Ambari is ascii.And Python 2.6 for UTF8 has a bug.
和
I think this is because I set a non-English language (i.e,. Trad. Chinese) as a default language when I installed CentOs 7. It would encounter a charset problem (UTF-8<->ascii) when confirming hosts. After changing the default language to English, This problem has been solved.
解決方法是將系統的預設語言改成英語。
解決辦法2:
最有效的方式就是關閉 openssl 的檢查
sed -i 's/verify=platform_default/verify=disable/' /etc/python/cert-verification.cfg source /etc/python/cert-verification.cfg
解決辦法3:
若還是不能註冊ambari-agent,使用下面介紹的方式。
如果上面方式還不能註冊,說明jdk版本不通過,使用預設oracle啊jdk,博主是(centos7.3,所以選擇jdk1.8)
(1)先停掉:ambari-server stop;
(2)解除安裝掉所有節點agent:rpm -qa | grep ambari-agent 得到對應版本,使用rpm -e ambari-agent-XXX解除安裝;
(3)啟動setup:ambari-server setup,配置你的東西,直到選擇jdk如下圖:
這裡,選擇3
然後,yum -y install ambari-agent
等下載安裝完成,繼續後續步驟。直到結束
(4)啟動ambari:ambari-server start
(5)配置ambari即可正常註冊ambari-agent
解決辦法4:
最終解決辦法:
見
https://community.hortonworks.com/questions/121978/openssl-compatibility.html?childToView=138080#answer-138080
改為
歡迎大家,加入我的微信公眾號:大資料躺過的坑 人工智慧躺過的坑
同時,大家可以關注我的個人部落格:
http://www.cnblogs.com/zlslch/ 和 http://www.cnblogs.com/lchzls/ http://www.cnblogs.com/sunnyDream/
詳情請見:http://www.cnblogs.com/zlslch/p/7473861.html
人生苦短,我願分享。本公眾號將秉持活到老學到老學習無休止的交流分享開源精神,匯聚於網際網路和個人學習工作的精華乾貨知識,一切來於網際網路,反饋回網際網路。
目前研究領域:大資料、機器學習、深度學習、人工智慧、資料探勘、資料分析。 語言涉及:Java、Scala、Python、Shell、Linux等 。同時還涉及平常所使用的手機、電腦和網際網路上的使用技巧、問題和實用軟體。 只要你一直關注和呆在群裡,每天必須有收穫
對應本平臺的討論和答疑QQ群:大資料和人工智慧躺過的坑(總群)(161156071)