ambari openssl 版本问题: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.检查os openssl是否是最新版本,若不是,请更新。

[root@node-1 ~]# rpm -qa | grep openssl 
openssl-1.0.1e-57.el6.x86_64
openssl-devel-1.0.1e-57.el6.x86_64

更新openssl
[root@node-1 ~]# yum update openssl

重启ambari-server
[root@node-1 ~]#  ambari-server restart

2.若不行,修改/etc/python/cert-verification.cfg配置文件

verify=disable

  修改/etc/ambari-agent/conf/ambari-agent.ini,在[security]添加下面内容

force_https_protocol=PROTOCOL_TLSv1_2

  重启ambari-agent 

[root@node-1 ~]#  ambari-agent restart

参考:

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

你可能感兴趣的:(ambari)