Ambari安装----Confirm Hosts Registering with the server failed解决办法

安装Ambari到Confirm Hosts这步过不去了!

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

[html]  view plain  copy
  1. ==========================  
  2. Creating target directory...  
  3. ==========================  
  4.   
  5. Command start time 2016-11-09 16:24:42  
  6.   
  7. Connection to slave1 closed.  
  8. SSH command execution finished  
  9. host=slave1exitcode=0  
  10. Command end time 2016-11-09 16:24:42  
  11.   
  12. ==========================  
  13. Copying common functions script...  
  14. ==========================  
  15.   
  16. Command start time 2016-11-09 16:24:42  
  17.   
  18. scp /usr/lib/python2.6/site-packages/ambari_commons  
  19. host=slave1exitcode=0  
  20. Command end time 2016-11-09 16:24:43  
  21.   
  22. ==========================  
  23. Copying OS type check script...  
  24. ==========================  
  25.   
  26. Command start time 2016-11-09 16:24:43  
  27.   
  28. scp /usr/lib/python2.6/site-packages/ambari_server/os_check_type.py  
  29. host=slave1exitcode=0  
  30. Command end time 2016-11-09 16:24:43  
  31.   
  32. ==========================  
  33. Running OS type check...  
  34. ==========================  
  35.   
  36. Command start time 2016-11-09 16:24:43  
  37. Cluster primary/cluster OS family is redhat6 and local/current OS family is redhat6  
  38.   
  39. Connection to slave1 closed.  
  40. SSH command execution finished  
  41. host=slave1exitcode=0  
  42. Command end time 2016-11-09 16:24:43  
  43.   
  44. ==========================  
  45. Checking 'sudo' package on remote host...  
  46. ==========================  
  47.   
  48. Command start time 2016-11-09 16:24:43  
  49. sudo-1.8.6p3-12.el6.x86_64  
  50.   
  51. Connection to slave1 closed.  
  52. SSH command execution finished  
  53. host=slave1exitcode=0  
  54. Command end time 2016-11-09 16:24:44  
  55.   
  56. ==========================  
  57. Copying repo file to 'tmp' folder...  
  58. ==========================  
  59.   
  60. Command start time 2016-11-09 16:24:44  
  61.   
  62. scp /etc/yum.repos.d/ambari.repo  
  63. host=slave1exitcode=0  
  64. Command end time 2016-11-09 16:24:44  
  65.   
  66. ==========================  
  67. Moving file to repo dir...  
  68. ==========================  
  69.   
  70. Command start time 2016-11-09 16:24:44  
  71.   
  72. Connection to slave1 closed.  
  73. SSH command execution finished  
  74. host=slave1exitcode=0  
  75. Command end time 2016-11-09 16:24:44  
  76.   
  77. ==========================  
  78. Copying setup script file...  
  79. ==========================  
  80.   
  81. Command start time 2016-11-09 16:24:44  
  82.   
  83. scp /usr/lib/python2.6/site-packages/ambari_server/setupAgent.py  
  84. host=slave1exitcode=0  
  85. Command end time 2016-11-09 16:24:44  
  86.   
  87. ==========================  
  88. Running setup agent script...  
  89. ==========================  
  90.   
  91. Command start time 2016-11-09 16:24:44  
  92. Verifying Python version compatibility...  
  93. Using python  /usr/bin/python2.6  
  94. Found ambari-agent PID: 17547  
  95. Stopping ambari-agent  
  96. Removing PID file at /var/run/ambari-agent/ambari-agent.pid  
  97. ambari-agent successfully stopped  
  98. ('INFO 2016-11-09 00:25:14,695 NetUtil.py:60 - Connecting to https://master:8440/ca  
  99. 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  
  100. ERROR 2016-11-09 00:25:14,753 NetUtil.py:79 - SSLError: Failed to connect. Please check openssl library versions.   
  101. Refer to: https://bugzilla.redhat.com/show_bug.cgi?id=1022468 for more details.  
  102. WARNING 2016-11-09 00:25:14,754 NetUtil.py:106 - Server at https://master:8440 is not reachable, sleeping for 10 seconds...  
  103. INFO 2016-11-09 00:25:21,325 main.py:68 - loglevel=logging.INFO  
  104. INFO 2016-11-09 00:25:24,754 NetUtil.py:60 - Connecting to https://master:8440/ca  
  105. 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  
  106. ERROR 2016-11-09 00:25:24,821 NetUtil.py:79 - SSLError: Failed to connect. Please check openssl library versions.   
  107. Refer to: https://bugzilla.redhat.com/show_bug.cgi?id=1022468 for more details.  
  108. WARNING 2016-11-09 00:25:24,822 NetUtil.py:106 - Server at https://master:8440 is not reachable, sleeping for 10 seconds...  
  109. INFO 2016-11-09 00:25:28,463 main.py:68 - loglevel=logging.INFO  
  110. INFO 2016-11-09 00:25:28,464 DataCleaner.py:36 - Data cleanup thread started  
  111. INFO 2016-11-09 00:25:28,465 DataCleaner.py:117 - Data cleanup started  
  112. INFO 2016-11-09 00:25:28,466 DataCleaner.py:119 - Data cleanup finished  
  113. INFO 2016-11-09 00:25:28,495 PingPortListener.py:51 - Ping port listener started on port: 8670  
  114. INFO 2016-11-09 00:25:28,495 main.py:258 - Connecting to Ambari server at https://slave1:8440 (192.168.140.208)  
  115. INFO 2016-11-09 00:25:28,495 NetUtil.py:60 - Connecting to https://slave1:8440/ca  
  116. 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    
  117. WARNING 2016-11-09 00:25:28,496 NetUtil.py:106 - Server at https://slave1:8440 is not reachable, sleeping for 10 seconds...  
  118. ', None)  
  119.   
  120. Connection to slave1 closed.  
  121. SSH command execution finished  
  122. host=slave1exitcode=0  
  123. Command end time 2016-11-09 16:24:54  
  124.   
  125. Registering with the server...  
  126. Registration with the server failed.  

主要是两个问题:

1、vim /etc/ambari-agent/conf/ambari-agent.ini

查看hostname是否改成本机的主机名;

输入hostname即可知道自己主机的hostname

2、中文和英文操作系统版本问题,中文操作系统出错,英文则成功;

centos6:

修改vim /etc/sysconfig/i18n

LANG="en_US.UTF-8"

SYSFONT="latarcyrheb-sun16"

centos7:

修改vim /etc/locale.conf

LANG="en_US.UTF-8"

LANGUAGE="en_US:en"

  • 1
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值