CentOS5/6/7系統下搭建安裝Amabari大數據集羣時出現SSLError: Failed to connect. Please check openssl library versions.

 

 

 

  很少說,直接上乾貨!html

 

 

 

 

==========================
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:python

地址:http://stackoverflow.com/questions/38423925/ambari-confirm-hosts-step-fails-registration-with-the-server-failedcentos

說明:中文和英文操做系統版本問題,中文操做系統出錯,英文則成功;微信

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.oracle

機器學習

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.socket

解決方法是將系統的默認語言改爲英語。學習

 

 

 

 

 

  解決辦法2:大數據

 最有效的方式就是關閉 openssl 的檢查this

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) 

 

 

 

 

 

 

 

 

 

 

 

 

相關文章
相關標籤/搜索