1.注册出现timeout错误
#修改超时限制 /usr/lib/python2.6/site-packages/ambari_agent/security.py
def create_connection(self):
if self.sock:
self.sock.close()
logger.info("SSL Connect being called.. connecting to the server")
sock = socket.create_connection((self.host, self.port), 120)
2.EOF occurred in violation of protocol (_ssl.c:661)
#修改/etc/ambari-agent/conf/ambari-agent.ini
#在security最下面新增
[security]
force_https_protocol=PROTOCOL_TLSv1_2
- python SSL验证设置
终极解决方案:
① 查看 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/pyth

本文档列举了在安装和使用Ambari过程中可能遇到的错误及其解决方案,包括超时错误、SSL协议问题、Python SSL验证、Yum安装问题、资源下载失败以及命令找不到等问题,并提供了详细的修复步骤。
最低0.47元/天 解锁文章
3953





