一、HDP版本信息
二、Ambari-agent 安装报错如下
[root@offline-client /]# tail -200f /var/log/ambari-agent/ambari-agent.log
ERROR 2021-06-07 20:37:10,672 NetUtil.py:97 - SSLError: Failed to connect. Please check openssl library versions.
Refer to: https:///show_bug.cgi?id=1022468 for more details.
WARNING 2021-06-07 20:37:10,672 NetUtil.py:124 - Server at https://offline-dn02:8440 is not reachable, sleeping for 10 seconds...
INFO 2021-06-07 20:37:20,673 NetUtil.py:70 - Connecting to https://offline-dn02:8440/ca
ERROR 2021-06-07 20:37:20,677 NetUtil.py:96 - EOF occurred in violation of protocol (_ssl.c:618)
ERROR 2021-06-07 20:37:20,677 NetUtil.py:97 - SSLError: Failed to connect. Please check openssl library versions.
Refer to: https:///show_bug.cgi?id=1022468 for more details.
WARNING 2021-06-07 20:37:20,677 NetUtil.py:124 - Server at https://offline-dn02:8440 is not reachable, sleeping for 10 seconds...
INFO 2021-06-07 20:37:30,678 NetUtil.py:70 - Connecting to https://offline-dn02:8440/ca
ERROR 2021-06-07 20:37:30,683 NetUtil.py:96 - EOF occurred in violation of protocol (_ssl.c:618)
ERROR 2021-06-07 20:37:30,683 NetUtil.py:97 - SSLError: Failed to connect. Please check openssl library versions.
三、解决
# 所有节点增加 PROTOCOL_TLSv1_2
vim /etc/ambari-agent/conf/ambari-agent.ini
[security]
force_https_protocol=PROTOCOL_TLSv1_2
# 关闭python的安全认证
vim /etc/python/cert-verification.cfg
[https]
verify=disable