1. 程式人生 > >ambari安裝問題 Confirm Hosts SSLError: Failed to connect. Please check openssl library versions

ambari安裝問題 Confirm Hosts SSLError: Failed to connect. Please check openssl library versions

 

 


Running setup agent script...
==========================
 
Command start time 2018-07-20 16:39:31
("INFO 2018-07-20 16:40:22,452 HeartbeatHandlers.py:116 - Stop event received
INFO 2018-07-20 16:40:22,452 NetUtil.py:130 - Stop event received
INFO 2018-07-20 16:40:22,453 ExitHelper.py:56 - Performing cleanup before exiting...
INFO 2018-07-20 16:40:22,454 ExitHelper.py:70 - Cleanup finished, exiting with code:0
INFO 2018-07-20 16:40:23,733 main.py:283 - Agent died gracefully, exiting.
INFO 2018-07-20 16:40:23,734 ExitHelper.py:56 - Performing cleanup before exiting...
INFO 2018-07-20 16:40:25,139 main.py:145 - loglevel=logging.INFO
INFO 2018-07-20 16:40:25,139 main.py:145 - loglevel=logging.INFO
INFO 2018-07-20 16:40:25,139 main.py:145 - loglevel=logging.INFO
INFO 2018-07-20 16:40:25,142 DataCleaner.py:39 - Data cleanup thread started
INFO 2018-07-20 16:40:25,144 DataCleaner.py:120 - Data cleanup started
INFO 2018-07-20 16:40:25,144 DataCleaner.py:122 - Data cleanup finished
INFO 2018-07-20 16:40:25,145 hostname.py:67 - agent:hostname_script configuration not defined thus read hostname 'bd141.chenmh' using socket.getfqdn().
INFO 2018-07-20 16:40:25,707 PingPortListener.py:50 - Ping port listener started on port: 8670
INFO 2018-07-20 16:40:25,710 main.py:437 - Connecting to Ambari server at https://bd140.chenmh:8440 (192.168.169.140)
INFO 2018-07-20 16:40:25,710 NetUtil.py:70 - Connecting to https://bd140.chenmh:8440/ca
ERROR 2018-07-20 16:40:25,713 NetUtil.py:96 - EOF occurred in violation of protocol (_ssl.c:579)
ERROR 2018-07-20 16:40:25,714 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-20 16:40:25,714 NetUtil.py:124 - Server at https://bd140.chenmh:8440 is not reachable, sleeping for 10 seconds...
", None)
("INFO 2018-07-20 16:40:22,452 HeartbeatHandlers.py:116 - Stop event received
INFO 2018-07-20 16:40:22,452 NetUtil.py:130 - Stop event received
INFO 2018-07-20 16:40:22,453 ExitHelper.py:56 - Performing cleanup before exiting...
INFO 2018-07-20 16:40:22,454 ExitHelper.py:70 - Cleanup finished, exiting with code:0
INFO 2018-07-20 16:40:23,733 main.py:283 - Agent died gracefully, exiting.
INFO 2018-07-20 16:40:23,734 ExitHelper.py:56 - Performing cleanup before exiting...
INFO 2018-07-20 16:40:25,139 main.py:145 - loglevel=logging.INFO
INFO 2018-07-20 16:40:25,139 main.py:145 - loglevel=logging.INFO
INFO 2018-07-20 16:40:25,139 main.py:145 - loglevel=logging.INFO
INFO 2018-07-20 16:40:25,142 DataCleaner.py:39 - Data cleanup thread started
INFO 2018-07-20 16:40:25,144 DataCleaner.py:120 - Data cleanup started
INFO 2018-07-20 16:40:25,144 DataCleaner.py:122 - Data cleanup finished
INFO 2018-07-20 16:40:25,145 hostname.py:67 - agent:hostname_script configuration not defined thus read hostname 'bd141.chenmh' using socket.getfqdn().
INFO 2018-07-20 16:40:25,707 PingPortListener.py:50 - Ping port listener started on port: 8670
INFO 2018-07-20 16:40:25,710 main.py:437 - Connecting to Ambari server at https://bd140.chenmh:8440 (192.168.169.140)
INFO 2018-07-20 16:40:25,710 NetUtil.py:70 - Connecting to https://bd140.chenmh:8440/ca
ERROR 2018-07-20 16:40:25,713 NetUtil.py:96 - EOF occurred in violation of protocol (_ssl.c:579)
ERROR 2018-07-20 16:40:25,714 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-20 16:40:25,714 NetUtil.py:124 - Server at https://bd140.chenmh:8440 is not reachable, sleeping for 10 seconds...
", None)
 
Connection to bd141.chenmh closed.
SSH command execution finished
host=bd141.chenmh, exitcode=0
Command end time 2018-07-20 16:40:27
 
Registering with the server...
Registration with the server failed.

解決方案:

在所有的節點上

1、vi /etc/ambari-agent/conf/ambari-agent.ini

新增  在 [security] 下  force_https_protocol=PROTOCOL_TLSv1_2

2、vi /etc/python/cert-verification.cfg

[https]

verify=disable

3.yum upgrade openssl