Ambari OpenSSL version problem: sslerror: failed to connect. Please check OpenSSL library versions

centos使用Ambari搭建Hadoop集群
ambari --Confirm Hosts报错
 
Command start time 2018-08-13 10:32:23
bash: /var/lib/ambari-agent/bin/ambari-agent: Is a directory
('INFO 2018-08-10 11:03:19,614 NetUtil.py:70 - Connecting to https://node-1:8440/ca
ERROR 2018-08-10 11:03:19,618 NetUtil.py:96 - EOF occurred in violation of protocol (_ssl.c:579)
ERROR 2018-08-10 11:03:19,618 NetUtil.py:97 - SSLError: Failed to connect. Please check openssl library versions. 

solution:

1. Check if OS openssl is the latest version, if not, please update.

[[email protected] ~]# rpm -qa | grep openssl 
openssl-1.0.1e-57.el6.x86_64
openssl-devel-1.0.1e-57.el6.x86_64

更新openssl
[[email protected] ~]# yum update openssl

重启ambari-server
[[email protected] ~]#  ambari-server restart

2. If not possible, modify /etc/pyth/cert-verification. CFG configuration file

verify=disable

modify /etc/ambari-agent/conf/ambari-agent.ini and add the following

in [security]

force_https_protocol=PROTOCOL_TLSv1_2

restart ambari-agent

[[email protected] ~]#  ambari-agent restart

reference:

https://community.hortonworks.com/questions/145/openssl-error-upon-host-registration.html

Read More: