不多说,直接上干货!
==========================
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://*.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.错误的解决办法(图文详解)的更多相关文章
-
ClouderManger搭建大数据集群时ERROR 2003 (HY000): Can&#39;t connect to MySQL server on &#39;ubuntucmbigdata1&#39; (111)的问题解决(图文详解)
问题详情 相关问题的场景,是在我下面的这篇博客里 Cloudera Manager安装之利用parcels方式(在线或离线)安装3或4节点集群(包含最新稳定版本或指定版本的安装)(添加服务)(Ubun ...
-
全网最详细的如何在谷歌浏览器里正确下载并安装Postman【一款功能强大的网页调试与发送网页HTTP请求的Chrome插件】(图文详解)
不多说,直接上干货! 想必,玩过Java Web的你,肯定是对于http post和get等请求测试的过程记忆犹新吧. Postman的安装方法分好几种,主要分为两种安装模式介绍: (1)chrome ...
-
cloudemanager安装时出现ProtocolError: <;ProtocolError for 127.0.0.1/RPC2: 401 Unauthorized>;问题解决方法(图文详解)
不多说,直接上干货! 问题详情 查看日志/var/log/cloudera-scm-agent/,得知 解决办法 $> ps -ef | grep supervisord $> kill ...
-
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用户 ...
-
关于在真实物理机器上用cloudermanger或ambari搭建大数据集群注意事项总结、经验和感悟心得(图文详解)
写在前面的话 (1) 最近一段时间,因担任我团队实验室的大数据环境集群真实物理机器工作,至此,本人秉持负责.认真和细心的态度,先分别在虚拟机上模拟搭建ambari(基于CentOS6.5版本)和clo ...
-
cloudemanager安装时出现failed to receive heartbeat from agent问题解决方法(图文详解)
不多说,直接上干货! 安装cdh5到最后报如下错误: 安装失败,无法接受agent发出的检测信号. 确保主机名称正确 确保端口7182可在cloudera manager server*问(检查防火 ...
-
基于JDBC的跨平台数据库管理工具DbVisualizer安装步骤(图文详解)(博主推荐)
首先,关于跨平台数据库管理工具DbVisualizer是什么?这个不多说,大家自行去看. 这个工具可以自定义连接其他没有驱动的数据库. 公司的项目牵扯到的数据库有mysql,sqlserver,o ...
-
cloudemanager安装时出现8475 MainThread agent ERROR Heartbeating to 192.168.30.1:7182 failed问题解决方法(图文详解)
不多说,直接上干货! 问题详情 解决这个问题简单的,是因为有进程占用了.比如 # ps aux | grep super root ? Ss : : /opt/cm-/lib64/cmf/agen ...
-
Ubuntu系统下搭建Python开发环境
之前演示了在Windows中安装Pycharm,很简单.下面介绍一下如何在Ubuntu中安装Pycharm 1.更新Python至3.5.1,执行以下命令: sudo add-apt-reposito ...
随机推荐
-
2016 最佳 Linux 发行版排行榜
2015年,不管在企业市场还是个人消费市场都是 Linux非常重要的一年.作为一个自2005年起就开始使用 Linux的 Linuxer ,我门见证了 Linux在过去十年的成长.2016 Linux ...
- java 调用微信截图工具
-
ios开发中的C语言学习—— 结构体简介
在开发过程中,经常会需要处理一组不同类型的数据,比如学生的个人信息,由姓名.年龄.性别.身高等组成,因为这些数据是由不同数据类型组成的,因此不能用数组表示,对于不同数据类型的一组数据,可以采用结构体来 ...
-
SystemTap知识(二)
Unbuntu安装systemtap: http://www.cnblogs.com/hdflzh/archive/2012/07/25/2608910.html 1 更新源到http://mirro ...
-
JsRender语法
{{:#data.Name}} 或 {{:Name}} 直接显示html格式{{>#data.Name}} 或 {{>Name}} 转义显示html字符 if else {{if bool ...
-
VS2010生成Qt程序图标修改方法
转自:http://blog.csdn.net/simeone18/article/details/7344547 1.准备ico文件,nuistcard.ico 2.在nuistcard工程目录,建 ...
-
hibernate 使用C3P0数据源
1.导入jar包: hibernate-release-4.3.5.Final/lib/optional/*.jar 2.增加配置: <!-- 配置 C3P0 数据源 --> <pr ...
-
Eclipse中添加android sdk javadoc和source
在 javadoc location path中添加file:/D:/Android_SDK/sdk/docs/reference/ 在 source attachment中添加为 Externa ...
-
TF卡座(外焊、内焊、掀盖式、全塑、简易)
TF卡座(外焊.内焊.掀盖 式.全塑.简易
-
Junit4单元测试之高级用法
Junit单元测试框架是Java程序开发必备的测试利器,现在最常用的就是Junit4了,在Junit4中所有的测试用例都使用了注解的形式,这比Junit3更加灵活与方便.之前在公司的关于单元测试的培训 ...