CentOS5/6/7系统下搭建安装Amabari大数据集群时出现SSLError: Failed to connect. Please check openssl library versions.错误的解决办法(图文详解)
不多说,直接上干货!
==========================
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.错误的解决办法(图文详解)的更多相关文章
- ClouderManger搭建大数据集群时ERROR 2003 (HY000): Can't connect to MySQL server on 'ubuntucmbigdata1' (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 ...
随机推荐
- python3 利用pip命令安装包和模块
本文介绍如何利用pip命令安装Python相关的包和模块.在Python中有些方法或者模块是自带的功能,也叫(build-in),内构函数,实际使用,可能内构函数或者模块不能完成我们的任务,我们就需要 ...
- 对int数组排序
// 排序-->小到大1 public void sortArray(int[] targetArr) { long t = System.currentTimeMi ...
- 距离不是一个连续的物理量(Distance is not a continuous physical quantity)
量子距:不同于现有物理学的长度计量.量子距,空间中的两个粒子之间的距离并不是连续的,而是某个单位距(量子单位距)的整数倍,而这个距离被称为量子距. Quantum distance: Length m ...
- ajax用户是否存在
$(function(){ $("#username").blur(function(){ var usernameInput=$(this).val(); $.post( &qu ...
- mybatis批量更新报错badsql
mybatis批量更新时语法写的都对,但是报错,需要在连接上面加上allowMultiQueries=true 示例:jdbc:MySQL://192.168.1.236:3306/test?useU ...
- [转]ps命令详解
原文地址:http://apps.hi.baidu.com/share/detail/32573968 转载自:http://www.cnblogs.com/wangkangluo1/archive/ ...
- TopicsExtraction with NMF & LDA
""" ================================================================================= ...
- prime distance on a tree(点分治+fft)
最裸的点分治+fft,调了好久,太菜了.... #include<iostream> #include<cstring> #include<cstdio> #inc ...
- weka环境配置
java环境变量设置: 安装jdk到具体目录"ABC"下当前目录下应该有jdk+版本号和jre加版本号. 然后打开环境变量:新建JAVA_HOME内容是:jdk的安装目录.例如:D ...
- codefores 1066 E. Binary Numbers AND Sum
这个题吧 你画一下就知道了 就拿这个例子来讲 4 5100110101 对于b串的话第5位只会经过a串的第4位,b串的第4位会经过a串的第3位和第4位.....b串的第1和第2位会经过a串的每一位 由 ...