不多说,直接上干货!

==========================
Creating target directory...
========================== Command start time -- :: Connection to cetc12 closed.
SSH command execution finished
host=cetc12, exitcode=
Command end time -- :: ==========================
Copying ambari sudo script...
========================== Command start time -- :: scp /var/lib/ambari-server/ambari-sudo.sh
host=cetc12, exitcode=
Command end time -- :: ==========================
Copying common functions script...
========================== Command start time -- :: scp /usr/lib/ambari-server/lib/ambari_commons
host=cetc12, exitcode=
Command end time -- :: ==========================
Copying create-python-wrap script...
========================== Command start time -- :: scp /var/lib/ambari-server/create-python-wrap.sh
host=cetc12, exitcode=
Command end time -- :: ==========================
Copying OS type check script...
========================== Command start time -- :: scp /usr/lib/ambari-server/lib/ambari_server/os_check_type.py
host=cetc12, exitcode=
Command end time -- :: ==========================
Running create-python-wrap script...
========================== Command start time -- :: Connection to cetc12 closed.
SSH command execution finished
host=cetc12, exitcode=
Command end time -- :: ==========================
Running OS type check...
========================== Command start time -- ::
Cluster primary/cluster OS family is redhat7 and local/current OS family is redhat7 Connection to cetc12 closed.
SSH command execution finished
host=cetc12, exitcode=
Command end time -- :: ==========================
Checking 'sudo' package on remote host...
========================== Command start time -- :: Connection to cetc12 closed.
SSH command execution finished
host=cetc12, exitcode=
Command end time -- :: ==========================
Copying repo file to 'tmp' folder...
========================== Command start time -- :: scp /etc/yum.repos.d/ambari.repo
host=cetc12, exitcode=
Command end time -- :: ==========================
Moving file to repo dir...
========================== Command start time -- :: Connection to cetc12 closed.
SSH command execution finished
host=cetc12, exitcode=
Command end time -- :: ==========================
Changing permissions for ambari.repo...
========================== Command start time -- :: Connection to cetc12 closed.
SSH command execution finished
host=cetc12, exitcode=
Command end time -- :: ==========================
Copying setup script file...
========================== Command start time -- :: scp /usr/lib/ambari-server/lib/ambari_server/setupAgent.py
host=cetc12, exitcode=
Command end time -- :: ==========================
Running setup agent script...
========================== Command start time -- ::
("INFO 2018-07-26 13:17:06,791 HeartbeatHandlers.py:116 - Stop event received
INFO -- ::, NetUtil.py: - Stop event received
INFO -- ::, ExitHelper.py: - Performing cleanup before exiting...
INFO -- ::, ExitHelper.py: - Cleanup finished, exiting with code:
INFO -- ::, main.py: - Agent died gracefully, exiting.
INFO -- ::, ExitHelper.py: - Performing cleanup before exiting...
INFO -- ::, main.py: - loglevel=logging.INFO
INFO -- ::, main.py: - loglevel=logging.INFO
INFO -- ::, main.py: - loglevel=logging.INFO
INFO -- ::, DataCleaner.py: - Data cleanup thread started
INFO -- ::, DataCleaner.py: - Data cleanup started
INFO -- ::, DataCleaner.py: - Data cleanup finished
INFO -- ::, hostname.py: - agent:hostname_script configuration not defined thus read hostname 'cetc12' using socket.getfqdn().
INFO -- ::, PingPortListener.py: - Ping port listener started on port:
INFO -- ::, main.py: - Connecting to Ambari server at https://cetc13:8440 (172.10.10.173)
INFO -- ::, NetUtil.py: - Connecting to https://cetc13:8440/ca
ERROR -- ::, NetUtil.py: - EOF occurred in violation of protocol (_ssl.c:)
ERROR -- ::, NetUtil.py: - SSLError: Failed to connect. Please check openssl library versions.
Refer to: https://bugzilla.redhat.com/show_bug.cgi?id=1022468 for more details.
WARNING -- ::, NetUtil.py: - Server at https://cetc13:8440 is not reachable, sleeping for 10 seconds...
", None)
("INFO 2018-07-26 13:17:06,791 HeartbeatHandlers.py:116 - Stop event received
INFO -- ::, NetUtil.py: - Stop event received
INFO -- ::, ExitHelper.py: - Performing cleanup before exiting...
INFO -- ::, ExitHelper.py: - Cleanup finished, exiting with code:
INFO -- ::, main.py: - Agent died gracefully, exiting.
INFO -- ::, ExitHelper.py: - Performing cleanup before exiting...
INFO -- ::, main.py: - loglevel=logging.INFO
INFO -- ::, main.py: - loglevel=logging.INFO
INFO -- ::, main.py: - loglevel=logging.INFO
INFO -- ::, DataCleaner.py: - Data cleanup thread started
INFO -- ::, DataCleaner.py: - Data cleanup started
INFO -- ::, DataCleaner.py: - Data cleanup finished
INFO -- ::, hostname.py: - agent:hostname_script configuration not defined thus read hostname 'cetc12' using socket.getfqdn().
INFO -- ::, PingPortListener.py: - Ping port listener started on port:
INFO -- ::, main.py: - Connecting to Ambari server at https://cetc13:8440 (172.10.10.173)
INFO -- ::, NetUtil.py: - Connecting to https://cetc13:8440/ca
ERROR -- ::, NetUtil.py: - EOF occurred in violation of protocol (_ssl.c:)
ERROR -- ::, NetUtil.py: - SSLError: Failed to connect. Please check openssl library versions.
Refer to: https://bugzilla.redhat.com/show_bug.cgi?id=1022468 for more details.
WARNING -- ::, NetUtil.py: - Server at https://cetc13:8440 is not reachable, sleeping for 10 seconds...
", None) Connection to cetc12 closed.
SSH command execution finished
host=cetc12, exitcode=
Command end time -- :: Registering with the server...
Registration with the server failed.

[root@cetc15 lib64]# rpm -qa | grep openssl
openssl-libs-1.0.2k-.el7.x86_64
xmlsec1-openssl-1.2.-.el7_4.x86_64
openssl-1.0.2k-.el7.x86_64

  解决办法1:

地址:http://stackoverflow.com/questions/38423925/ambari-confirm-hosts-step-fails-registration-with-the-server-failed

说明:中文和英文操作系统版本问题,中文操作系统出错,英文则成功;

Hey,thank both of you.i got it.The character in China is UTF8,and Ambari is ascii.And Python 2.6 for UTF8 has a bug.

I think this is because I set a non-English language (i.e,. Trad. Chinese) as a default language when I installed CentOs 7. It would encounter a charset problem (UTF-8<->ascii) when confirming hosts. After changing the default language to English, This problem has been solved.

解决方法是将系统的默认语言改成英语。

  解决办法2:

最有效的方式就是关闭 openssl 的检查

sed -i 's/verify=platform_default/verify=disable/' /etc/python/cert-verification.cfg

source /etc/python/cert-verification.cfg

   解决办法3:

若还是不能注册ambari-agent,使用下面介绍的方式。

  如果上面方式还不能注册,说明jdk版本不通过,使用默认oracle啊jdk,博主是(centos7.3,所以选择jdk1.8)

(1)先停掉:ambari-server stop;

(2)卸载掉所有节点agent:rpm -qa | grep ambari-agent 得到对应版本,使用rpm -e ambari-agent-XXX卸载;

(3)启动setup:ambari-server setup,配置你的东西,直到选择jdk如下图:

    这里,选择3

    然后,yum -y install ambari-agent

等下载安装完成,继续后续步骤。直到结束

(4)启动ambari:ambari-server start

(5)配置ambari即可正常注册ambari-agent

    解决办法4:

    最终解决办法:

  见

https://community.hortonworks.com/questions/121978/openssl-compatibility.html?childToView=138080#answer-138080

  改为

欢迎大家,加入我的微信公众号:大数据躺过的坑        人工智能躺过的坑
 
 
 

同时,大家可以关注我的个人博客

   http://www.cnblogs.com/zlslch/   和     http://www.cnblogs.com/lchzls/      http://www.cnblogs.com/sunnyDream/   

   详情请见:http://www.cnblogs.com/zlslch/p/7473861.html

  人生苦短,我愿分享。本公众号将秉持活到老学到老学习无休止的交流分享开源精神,汇聚于互联网和个人学习工作的精华干货知识,一切来于互联网,反馈回互联网。
  目前研究领域:大数据、机器学习、深度学习、人工智能、数据挖掘、数据分析。 语言涉及:Java、Scala、Python、Shell、Linux等 。同时还涉及平常所使用的手机、电脑和互联网上的使用技巧、问题和实用软件。 只要你一直关注和呆在群里,每天必须有收获

对应本平台的讨论和答疑QQ群:大数据和人工智能躺过的坑(总群)(161156071) 

CentOS5/6/7系统下搭建安装Amabari大数据集群时出现SSLError: Failed to connect. Please check openssl library versions.错误的解决办法(图文详解)的更多相关文章

  1. ClouderManger搭建大数据集群时ERROR 2003 (HY000): Can't connect to MySQL server on 'ubuntucmbigdata1' (111)的问题解决(图文详解)

    问题详情 相关问题的场景,是在我下面的这篇博客里 Cloudera Manager安装之利用parcels方式(在线或离线)安装3或4节点集群(包含最新稳定版本或指定版本的安装)(添加服务)(Ubun ...

  2. 全网最详细的如何在谷歌浏览器里正确下载并安装Postman【一款功能强大的网页调试与发送网页HTTP请求的Chrome插件】(图文详解)

    不多说,直接上干货! 想必,玩过Java Web的你,肯定是对于http post和get等请求测试的过程记忆犹新吧. Postman的安装方法分好几种,主要分为两种安装模式介绍: (1)chrome ...

  3. cloudemanager安装时出现ProtocolError: <ProtocolError for 127.0.0.1/RPC2: 401 Unauthorized>问题解决方法(图文详解)

    不多说,直接上干货! 问题详情 查看日志/var/log/cloudera-scm-agent/,得知 解决办法 $> ps -ef | grep supervisord $> kill ...

  4. Ambari2.6.2 HDP2.6.5 大数据集群搭建

    Ambari 2.6.2 中 HDFS-2.7.3 YARN-2.7.3 HIVE-1.2.1 HBASE-1.1.2 ZOOKEEPER-3.4.6 SPARK-2.3.0 注:本文基于root用户 ...

  5. 关于在真实物理机器上用cloudermanger或ambari搭建大数据集群注意事项总结、经验和感悟心得(图文详解)

    写在前面的话 (1) 最近一段时间,因担任我团队实验室的大数据环境集群真实物理机器工作,至此,本人秉持负责.认真和细心的态度,先分别在虚拟机上模拟搭建ambari(基于CentOS6.5版本)和clo ...

  6. cloudemanager安装时出现failed to receive heartbeat from agent问题解决方法(图文详解)

    不多说,直接上干货! 安装cdh5到最后报如下错误: 安装失败,无法接受agent发出的检测信号. 确保主机名称正确 确保端口7182可在cloudera manager server上访问(检查防火 ...

  7. 基于JDBC的跨平台数据库管理工具DbVisualizer安装步骤(图文详解)(博主推荐)

    首先,关于跨平台数据库管理工具DbVisualizer是什么?这个不多说,大家自行去看. 这个工具可以自定义连接其他没有驱动的数据库.   公司的项目牵扯到的数据库有mysql,sqlserver,o ...

  8. cloudemanager安装时出现8475 MainThread agent ERROR Heartbeating to 192.168.30.1:7182 failed问题解决方法(图文详解)

    不多说,直接上干货!   问题详情 解决这个问题简单的,是因为有进程占用了.比如 # ps aux | grep super root ? Ss : : /opt/cm-/lib64/cmf/agen ...

  9. Ubuntu系统下搭建Python开发环境

    之前演示了在Windows中安装Pycharm,很简单.下面介绍一下如何在Ubuntu中安装Pycharm 1.更新Python至3.5.1,执行以下命令: sudo add-apt-reposito ...

随机推荐

  1. 批量运维SQl生成,可以用EXCEl,也可以SQL查询生成

    select 'insert into Base_VehiclesInformation (ID,CarModelID,FistRegTime,ScrappageDate, Creator,Creat ...

  2. CentOS7 + Django2.1 + uwsgi + nginx配置

    假设已经可以运行Django项目,可以runserver.也已经安装了uwsgi和nginx 现在需要进行配置. 刚开始进行uwsgi测试就不行,提示bash:'uwsgi' Command not ...

  3. bootstrap的引用和注意事项

    1,在https://v3.bootcss.com/getting-started/#download下载bootstrap的压缩包: 2,将压缩包解压到自己的工程文件中,会得到如下结果: 3,打开这 ...

  4. 周报数据采集之生存图片(execl方法)

    https://blog.csdn.net/Luzaofa/article/details/81675364 Python之Excel chart另存为图片大家好,好久没有更新博客了,这一段时间有点忙 ...

  5. 我的Unity学习笔记之——Unity中从网站下载ab资源+下载存储一条龙

    using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Net ...

  6. JavaScript基础视频教程总结(111-120章)

    <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title&g ...

  7. 在ExtJS中查看视频

    listeners: { render: function() { win.update( '<video src="' + path+ '" width="100 ...

  8. 微信小程序——地图

    一:如何标点问题 地图模块需要用标点:官网API里面的wx.createMapContext(mapId, this)接口,且用官网Demo,小程序运行报错此时需要在wxml里面给map标签添加属性m ...

  9. 新FSM的一些思路

    好久之前写过一篇关于状态机的小例子,可以看这里http://www.cnblogs.com/mawanli/p/5966080.html,这篇博客首先感谢需要感谢当时看到凉鞋的笔记博客, 凉鞋的博客地 ...

  10. C实现动态进度条

    #include <iostream> #include <windows.h> void HideCursor() { CONSOLE_CURSOR_INFO cursor_ ...