Ambari学习3_Ambari Registration with the server failed 错误解决

在安装配置Ambari过程中遇到'Registration with the server failed'错误。错误可能由hostname不匹配、CentOS版本或操作系统语言引起。解决方案包括确认ambari-agent.ini中hostname正确,尝试使用CentOS6或更低版本,以及将系统默认语言更改为英语以解决字符编码问题。
部署运行你感兴趣的模型镜像

按照网上的教程安装配置Ambari,进行到第三步时,出现错误:


点击红色“Failed”,查看详细错误:

==========================
Creating target directory...
==========================

Command start time 2016-11-09 16:24:42

Connection to slave1 closed.
SSH command execution finished
host=slave1, exitcode=0
Command end time 2016-11-09 16:24:42

==========================
Copying common functions script...
==========================

Command start time 2016-11-09 16:24:42

scp /usr/lib/python2.6/site-packages/ambari_commons
host=slave1, exitcode=0
Command end time 2016-11-09 16:24:43

==========================
Copying OS type check script...
==========================

Command start time 2016-11-09 16:24:43

scp /usr/lib/python2.6/site-packages/ambari_server/os_check_type.py
host=slave1, exitcode=0
Command end time 2016-11-09 16:24:43

==========================
Running OS type check...
==========================

Command start time 2016-11-09 16:24:43
Cluster primary/cluster OS family is redhat6 and local/current OS family is redhat6

Connection to slave1 closed.
SSH command execution finished
host=slave1, exitcode=0
Command end time 2016-11-09 16:24:43

==========================
Checking 'sudo' package on remote host...
==========================

Command start time 2016-11-09 16:24:43
sudo-1.8.6p3-12.el6.x86_64

Connection to slave1 closed.
SSH command execution finished
host=slave1, exitcode=0
Command end time 2016-11-09 16:24:44

==========================
Copying repo file to 'tmp' folder...
==========================

Command start time 2016-11-09 16:24:44

scp /etc/yum.repos.d/ambari.repo
host=slave1, exitcode=0
Command end time 2016-11-09 16:24:44

==========================
Moving file to repo dir...
==========================

Command start time 2016-11-09 16:24:44

Connection to slave1 closed.
SSH command execution finished
host=slave1, exitcode=0
Command end time 2016-11-09 16:24:44

==========================
Copying setup script file...
==========================

Command start time 2016-11-09 16:24:44

scp /usr/lib/python2.6/site-packages/ambari_server/setupAgent.py
host=slave1, exitcode=0
Command end time 2016-11-09 16:24:44

==========================
Running setup agent script...
==========================

Command start time 2016-11-09 16:24:44
Verifying Python version compatibility...
Using python  /usr/bin/python2.6
Found ambari-agent PID: 17547
Stopping ambari-agent
Removing PID file at /var/run/ambari-agent/ambari-agent.pid
ambari-agent successfully stopped
('INFO 2016-11-09 00:25:14,695 NetUtil.py:60 - Connecting to https://master:8440/ca
ERROR 2016-11-09 00:25:14,753 NetUtil.py:78 - [Errno 1] _ssl.c:492: error:100AE081:elliptic curve routines:EC_GROUP_new_by_curve_name:unknown group
ERROR 2016-11-09 00:25:14,753 NetUtil.py:79 - SSLError: Failed to connect. Please check openssl library versions. 
Refer to: https://bugzilla.redhat.com/show_bug.cgi?id=1022468 for more details.
WARNING 2016-11-09 00:25:14,754 NetUtil.py:106 - Server at https://master:8440 is not reachable, sleeping for 10 seconds...
INFO 2016-11-09 00:25:21,325 main.py:68 - loglevel=logging.INFO
INFO 2016-11-09 00:25:24,754 NetUtil.py:60 - Connecting to https://master:8440/ca
ERROR 2016-11-09 00:25:24,821 NetUtil.py:78 - [Errno 1] _ssl.c:492: error:100AE081:elliptic curve routines:EC_GROUP_new_by_curve_name:unknown group
ERROR 2016-11-09 00:25:24,821 NetUtil.py:79 - SSLError: Failed to connect. Please check openssl library versions. 
Refer to: https://bugzilla.redhat.com/show_bug.cgi?id=1022468 for more details.
WARNING 2016-11-09 00:25:24,822 NetUtil.py:106 - Server at https://master:8440 is not reachable, sleeping for 10 seconds...
INFO 2016-11-09 00:25:28,463 main.py:68 - loglevel=logging.INFO
INFO 2016-11-09 00:25:28,464 DataCleaner.py:36 - Data cleanup thread started
INFO 2016-11-09 00:25:28,465 DataCleaner.py:117 - Data cleanup started
INFO 2016-11-09 00:25:28,466 DataCleaner.py:119 - Data cleanup finished
INFO 2016-11-09 00:25:28,495 PingPortListener.py:51 - Ping port listener started on port: 8670
INFO 2016-11-09 00:25:28,495 main.py:258 - Connecting to Ambari server at https://slave1:8440 (192.168.140.208)
INFO 2016-11-09 00:25:28,495 NetUtil.py:60 - Connecting to https://slave1:8440/ca
WARNING 2016-11-09 00:25:28,496 NetUtil.py:83 - Failed to connect to https://slave1:8440/ca due to [Errno 111] Connection refused  
WARNING 2016-11-09 00:25:28,496 NetUtil.py:106 - Server at https://slave1:8440 is not reachable, sleeping for 10 seconds...
', None)

Connection to slave1 closed.
SSH command execution finished
host=slave1, exitcode=0
Command end time 2016-11-09 16:24:54

Registering with the server...
Registration with the server failed.
主要问题出现在最后两行。

上网查找原因,,可能的原因有:

1,

地址:http://stackoverflow.com/questions/27531215/ambari-1-7-0-cannot-register-datanodes-in-centos-cluster

说明:查看/etc/ambari-agent/conf/ambari-agent.ini文件,看hostname是否改成本机的主机名;

即,改成对应的master,slave1,slave2;

2,

地址:http://superuser.com/questions/825443/registration-with-the-server-failed-while-configuring-amabri-on-centos-7

说明:CentOS版本问题,使用CentOS7的话会失败,使用CentOS6,5成功;

3,

地址: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.

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



您可能感兴趣的与本文相关的镜像

Stable-Diffusion-3.5

Stable-Diffusion-3.5

图片生成
Stable-Diffusion

Stable Diffusion 3.5 (SD 3.5) 是由 Stability AI 推出的新一代文本到图像生成模型,相比 3.0 版本,它提升了图像质量、运行速度和硬件效率

评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值