Ambari学习3_Ambari Registration with the server failed 错误解决
来源:互联网 发布:算法设计与分析 王秋芬 编辑:程序博客网 时间:2024/05/02 20:16
按照网上的教程安装配置Ambari,进行到第三步时,出现错误:
点击红色“Failed”,查看详细错误:
==========================Creating target directory...==========================Command start time 2016-11-09 16:24:42Connection to slave1 closed.SSH command execution finishedhost=slave1, exitcode=0Command end time 2016-11-09 16:24:42==========================Copying common functions script...==========================Command start time 2016-11-09 16:24:42scp /usr/lib/python2.6/site-packages/ambari_commonshost=slave1, exitcode=0Command end time 2016-11-09 16:24:43==========================Copying OS type check script...==========================Command start time 2016-11-09 16:24:43scp /usr/lib/python2.6/site-packages/ambari_server/os_check_type.pyhost=slave1, exitcode=0Command end time 2016-11-09 16:24:43==========================Running OS type check...==========================Command start time 2016-11-09 16:24:43Cluster primary/cluster OS family is redhat6 and local/current OS family is redhat6Connection to slave1 closed.SSH command execution finishedhost=slave1, exitcode=0Command end time 2016-11-09 16:24:43==========================Checking 'sudo' package on remote host...==========================Command start time 2016-11-09 16:24:43sudo-1.8.6p3-12.el6.x86_64Connection to slave1 closed.SSH command execution finishedhost=slave1, exitcode=0Command end time 2016-11-09 16:24:44==========================Copying repo file to 'tmp' folder...==========================Command start time 2016-11-09 16:24:44scp /etc/yum.repos.d/ambari.repohost=slave1, exitcode=0Command end time 2016-11-09 16:24:44==========================Moving file to repo dir...==========================Command start time 2016-11-09 16:24:44Connection to slave1 closed.SSH command execution finishedhost=slave1, exitcode=0Command end time 2016-11-09 16:24:44==========================Copying setup script file...==========================Command start time 2016-11-09 16:24:44scp /usr/lib/python2.6/site-packages/ambari_server/setupAgent.pyhost=slave1, exitcode=0Command end time 2016-11-09 16:24:44==========================Running setup agent script...==========================Command start time 2016-11-09 16:24:44Verifying Python version compatibility...Using python /usr/bin/python2.6Found ambari-agent PID: 17547Stopping ambari-agentRemoving PID file at /var/run/ambari-agent/ambari-agent.pidambari-agent successfully stopped('INFO 2016-11-09 00:25:14,695 NetUtil.py:60 - Connecting to https://master:8440/caERROR 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 groupERROR 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.INFOINFO 2016-11-09 00:25:24,754 NetUtil.py:60 - Connecting to https://master:8440/caERROR 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 groupERROR 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.INFOINFO 2016-11-09 00:25:28,464 DataCleaner.py:36 - Data cleanup thread startedINFO 2016-11-09 00:25:28,465 DataCleaner.py:117 - Data cleanup startedINFO 2016-11-09 00:25:28,466 DataCleaner.py:119 - Data cleanup finishedINFO 2016-11-09 00:25:28,495 PingPortListener.py:51 - Ping port listener started on port: 8670INFO 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/caWARNING 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 finishedhost=slave1, exitcode=0Command end time 2016-11-09 16:24:54Registering 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.
解决方法是将系统的默认语言改成英语。
- Ambari学习3_Ambari Registration with the server failed 错误解决
- Ambari学习10_ambari安装过程Registration with the server failed和[Errno 256] No more mirrors to try
- ambari安装报错Registration with the server failed.
- Ambari学习12_ambari删除脚本
- Ambari学习1_Ambari——大数据平台的搭建利器
- Registration of the Integration Pack failed
- Failed to run the WC DB work queue associated with 错误的解决
- Failed to run the WC DB work queue associated with 错误的解决
- Failed to run the WC DB work queue associated with 错误的解决
- Failed to run the WC DB work queue associated with 错误的解决
- Ambari Server安装失败解决
- Spring MVC json报406错误的解决办法 Failed to load resource: the server responded with a status of 406
- 【我的Android进阶之旅】解决SVN Cleanup错误: Failed to run the WC DB work queue associated with
- keyboard-interactive authentication with the ssh2 server failed
- The server failed to respond with a valid HTTP response
- Conversion to Dalvik format failed with error 1错误解决
- linker command failed with exit code 1)错误解决
- linker command failed with exit code 1 错误的解决
- Hadoop集群HA(High Available)配置
- 滑屏轮播——translateX版
- Java网络爬虫crawler4j学习笔记<5> TLDList类
- 【44.19%】【codeforces 608D】Zuma
- kaggel入门比赛_HousePrices
- Ambari学习3_Ambari Registration with the server failed 错误解决
- linux内核下载地址
- LeetCode 263. Ugly Number
- windbg修改notepad内容(!pte/!dd/.process/s命令)
- Android原生权限管理:AppOps
- QT 控件背景
- 2016传智播客大数据第三期完整版
- 03——js 获取元素id 动态注册事件 window对象
- hihoCoder #1407 : 后缀数组二·重复旋律2