打赏

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) 

 

 

 

 

 

 

 

 

 

 

 

 

 

posted @ 2018-11-10 22:04 大数据和AI躺过的坑 阅读(...) 评论(...) 编辑 收藏