ambari 注册节点服务器时报错解决方案

INFO 2020-07-06 15:18:12,647 NetUtil.py:70 - Connecting to https://hadoop01:8440/ca
ERROR 2020-07-06 15:18:12,649 NetUtil.py:96 - EOF occurred in violation of protocol (_ssl.c:618)
ERROR 2020-07-06 15:18:12,649 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 2020-07-06 15:18:12,649 NetUtil.py:124 - Server at https://hadoop01:8440 is not reachable, sleeping for 10 seconds...
INFO 2020-07-06 15:18:22,649 NetUtil.py:70 - Connecting to https://hadoop01:8440/ca
ERROR 2020-07-06 15:18:22,650 NetUtil.py:96 - EOF occurred in violation of protocol (_ssl.c:618)
ERROR 2020-07-06 15:18:22,650 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 2020-07-06 15:18:22,651 NetUtil.py:124 - Server at https://hadoop01:8440 is not reachable, sleeping for 10 seconds...
(END)

① 查看 openssl 版本:

    [root@ambari ~]# openssl version
    OpenSSL 1.0.2k-fips  26 Jan 2017

    [root@ambari ~]# rpm -qa | grep openssl
    openssl-libs-1.0.2k-12.el7.x86_64
    openssl-1.0.2k-12.el7.x86_64


如果低于 openssl-1.0.1e-16.el6.x86_64 版本,则需要更新到 openssl-1.0.1e-16.el6.x86_64 及以上版本

② 查看 Python 版本:

    [root@ambari ~]# python -V
    Python 2.7.5

如果低于 Python 2.7 版本,则升级 Python 到 2.7 及以上版本。


③ 编辑 /etc/python/cert-verification.cfg 配置文件,将 [https] 节的 verify 项设为禁用:

    [root@ambari ~]# vi /etc/python/cert-verification.cfg
    # Possible values are:
    # 'enable' to ensure HTTPS certificate verification is enabled by default
    # 'disable' to ensure HTTPS certificate verification is disabled by default
    # 'platform_default' to delegate the decision to the redistributor providing this particular Python version

    # For more info refer to https://www.python.org/dev/peps/pep-0493/
    [https]
    verify=disable

保存退出。


④ 编辑 /etc/ambari-agent/conf/ambari-agent.ini 配置文件,在 [security] 节部分,确保设置如下两个值,其它值保持不变:

    [root@ambari ~]# vi /etc/ambari-agent/conf/ambari-agent.ini

    [security]
    ssl_verify_cert=0
    force_https_protocol=PROTOCOL_TLSv1_2


保存退出,重启 ambari-agent:

    [root@ambari ~]# ambari-agent restart


重新执行确认主机步骤(Confirm Hosts),即可通过确认主机并完成注册。

 

  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

qq_39727649

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值