ConfirmHost报错Python怎么解决

Confirm 一直是failed

错误日志如下:

  1. Command start time 2019-02-20 14:43:54
    ("INFO 2019-02-20 14:44:01,232 HeartbeatHandlers.py:116 - Stop event received
    INFO 2019-02-20 14:44:01,232 NetUtil.py:130 - Stop event received
    INFO 2019-02-20 14:44:01,232 ExitHelper.py:56 - Performing cleanup before exiting...
    INFO 2019-02-20 14:44:01,232 ExitHelper.py:70 - Cleanup finished, exiting with code:0
    INFO 2019-02-20 14:44:02,427 main.py:283 - Agent died gracefully, exiting.
    INFO 2019-02-20 14:44:02,427 ExitHelper.py:56 - Performing cleanup before exiting...
    INFO 2019-02-20 14:44:03,067 main.py:145 - loglevel=logging.INFO
    INFO 2019-02-20 14:44:03,067 main.py:145 - loglevel=logging.INFO
    INFO 2019-02-20 14:44:03,067 main.py:145 - loglevel=logging.INFO
    INFO 2019-02-20 14:44:03,068 DataCleaner.py:39 - Data cleanup thread started
    INFO 2019-02-20 14:44:03,070 DataCleaner.py:120 - Data cleanup started
    INFO 2019-02-20 14:44:03,070 DataCleaner.py:122 - Data cleanup finished
    INFO 2019-02-20 14:44:03,070 hostname.py:67 - agent:hostname_script configuration not defined thus read hostname 'qujianlei' using socket.getfqdn().
    INFO 2019-02-20 14:44:03,105 PingPortListener.py:50 - Ping port listener started on port: 8670
    INFO 2019-02-20 14:44:03,107 main.py:437 - Connecting to Ambari server at https://qujianlei:8440 (公网ip)
    INFO 2019-02-20 14:44:03,107 NetUtil.py:70 - Connecting to https://qujianlei:8440/ca
    ERROR 2019-02-20 14:44:03,114 NetUtil.py:96 - EOF occurred in violation of protocol (_ssl.c:618)
    ERROR 2019-02-20 14:44:03,114 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 2019-02-20 14:44:03,114 NetUtil.py:124 - Server at https://qujianlei:8440 is not reachable, sleeping for 10 seconds...
    ", None)

解决方案:

1.ERROR 2019-02-20 14:44:03,114 NetUtil.py:96 - EOF occurred in violation of protocol (_ssl.c:618) 2.ERROR 2019-02-20 14:44:03,114 NetUtil.py:97 - SSLError: Failed to connect. Please check openssl library versions.

1.需要修改每个机器上的ambari-agent.ini文件,需要在security下面添加一行: 编辑文件:vi /etc/ambari-agent/conf/ambari-agent.ini force_https_protocol = PROTOCOL_TLSv1_2 2.看着是openssl问题 但实际上应该是python版本原因 因为python2.7.5以上的版本增加了版本验证 需要降低python版本或者关闭证书验证: vi /etc/python/cert-verification.cfg [https] verify=disable 如果python版本低于2.7.5,请尝试更新openssl

 

  1.  

文章链接: https://www.mfisp.com/19714.html

文章标题:ConfirmHost报错Python怎么解决

文章版权:梦飞科技所发布的内容,部分为原创文章,转载请注明来源,网络转载文章如有侵权请联系我们!

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。

点点赞赏,手留余香

给TA打赏
共0人
还没有人赞赏,快来当第一个赞赏的人吧!
    建站教程

    MySQL创建数据库与表

    2023-4-17 11:52:18

    建站教程

    CentOS 7.2 安装 Ambari

    2023-4-18 12:43:10

    0 条回复 A文章作者 M管理员
    如果喜欢,请评论一下~
    欢迎您,新朋友,感谢参与互动!
      暂无讨论,说说你的看法吧
    个人中心
    购物车
    优惠劵
    今日签到
    私信列表
    搜索

    梦飞科技 - 最新云主机促销服务器租用优惠

    可以介绍下你们的服务器产品么

    云服务器你们是怎么收费的呢

    租用vps现在有优惠活动吗