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 time 2018-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.

 

 

 

 

 

[root@cetc15 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) 

 

 

 

 

 

 

 

 

 

 

 

 

 


免責聲明!

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



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