首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >HDP主机注册失败

HDP主机注册失败
EN

Stack Overflow用户
提问于 2015-02-12 08:12:36
回答 1查看 2.5K关注 0票数 0
  1. 在“高级存储库选项”下的“Select”页面上,我只检查了“redhat6”,它显示了HDPHDP Utils的“400:坏请求”,然后我检查了‘验证’并继续。
  2. 然后,我添加了主机名和id_rsa文件( Ambari正在运行的主机,也将用作NN)并单击next。

3.三个主机(非Ambari)比另一个主机更早失败,下面是其中一个主机的日志

代码语言:javascript
复制
==========================
Creating target directory…
==========================

Command start time 2015-02-11 16:03:55

Connection to l1033lab.sss.se.scania.com closed.
SSH command execution finished
host=l1033lab.sss.se.scania.com, exitcode=0
Command end time 2015-02-11 16:03:56

==========================
Copying common functions script…
==========================

Command start time 2015-02-11 16:03:56

scp /usr/lib/python2.6/site-packages/ambari_commons
host=l1033lab.sss.se.scania.com, exitcode=0
Command end time 2015-02-11 16:03:56

==========================
Copying OS type check script…
==========================

Command start time 2015-02-11 16:03:56

scp /usr/lib/python2.6/site-packages/ambari_server/os_check_type.py
host=l1033lab.sss.se.scania.com, exitcode=0
Command end time 2015-02-11 16:03:56

==========================
Running OS type check…
==========================

Command start time 2015-02-11 16:03:56
Cluster primary/cluster OS type is redhat6 and local/current OS type is redhat6

Connection to l1033lab.sss.se.scania.com closed.
SSH command execution finished
host=l1033lab.sss.se.scania.com, exitcode=0
Command end time 2015-02-11 16:03:57

==========================
Checking ‘sudo’ package on remote host…
==========================

Command start time 2015-02-11 16:03:57
sudo-1.8.6p3-12.el6.x86_64

Connection to l1033lab.sss.se.scania.com closed.
SSH command execution finished
host=l1033lab.sss.se.scania.com, exitcode=0
Command end time 2015-02-11 16:03:58

==========================
Copying repo file to ‘tmp’ folder…
==========================

Command start time 2015-02-11 16:03:58

scp /etc/yum.repos.d/ambari.repo
host=l1033lab.sss.se.scania.com, exitcode=0
Command end time 2015-02-11 16:03:58

==========================
Moving file to repo dir…
==========================

Command start time 2015-02-11 16:03:58

Connection to l1033lab.sss.se.scania.com closed.
SSH command execution finished
host=l1033lab.sss.se.scania.com, exitcode=0
Command end time 2015-02-11 16:03:58

==========================
Copying setup script file…
==========================

Command start time 2015-02-11 16:03:58

scp /usr/lib/python2.6/site-packages/ambari_server/setupAgent.py
host=l1033lab.sss.se.scania.com, exitcode=0
Command end time 2015-02-11 16:03:59

==========================
Running setup agent script…
==========================

Command start time 2015-02-11 16:03:59
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
http://public-repo-1.hortonworks.com/ambari/centos6/1.x/updates/1.7.0/repodata/repomd.xml: [Errno 12] Timeout on http://public-repo-1.hortonworks.com/ambari/centos6/1.x/updates/1.7.0/repodata/repomd.xml: (28, ‘connect() timed out!’)
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: Updates-ambari-1.7.0. Please verify its path and try again
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
http://public-repo-1.hortonworks.com/ambari/centos6/1.x/updates/1.7.0/repodata/repomd.xml: [Errno 12] Timeout on http://public-repo-1.hortonworks.com/ambari/centos6/1.x/updates/1.7.0/repodata/repomd.xml: (28, ‘connect() timed out!’)
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: Updates-ambari-1.7.0. Please verify its path and try again
/bin/sh: /usr/sbin/ambari-agent: No such file or directory
{‘exitstatus': 1, ‘log': (”, None)}

Connection to l1033lab.sss.se.scania.com closed.
SSH command execution finished
host=l1033lab.sss.se.scania.com, exitcode=1
Command end time 2015-02-11 16:05:00

ERROR: Bootstrap of host l1033lab.sss.se.scania.com fails because previous action finished with non-zero exit code (1)
ERROR MESSAGE: tcgetattr: Invalid argument
Connection to l1033lab.sss.se.scania.com closed.

STDOUT: This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
http://public-repo-1.hortonworks.com/ambari/centos6/1.x/updates/1.7.0/repodata/repomd.xml: [Errno 12] Timeout on http://public-repo-1.hortonworks.com/ambari/centos6/1.x/updates/1.7.0/repodata/repomd.xml: (28, ‘connect() timed out!’)
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: Updates-ambari-1.7.0. Please verify its path and try again
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
http://public-repo-1.hortonworks.com/ambari/centos6/1.x/updates/1.7.0/repodata/repomd.xml: [Errno 12] Timeout on http://public-repo-1.hortonworks.com/ambari/centos6/1.x/updates/1.7.0/repodata/repomd.xml: (28, ‘connect() timed out!’)
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: Updates-ambari-1.7.0. Please verify its path and try again
/bin/sh: /usr/sbin/ambari-agent: No such file or directory
{‘exitstatus': 1, ‘log': (”, None)}

Connection to l1033lab.sss.se.scania.com closed.

最后一个失败的(在其中运行Ambari )有下面的日志

代码语言:javascript
复制
==========================
Creating target directory…
==========================

Command start time 2015-02-11 16:03:55

Connection to l1032lab.sss.se.scania.com closed.
SSH command execution finished
host=l1032lab.sss.se.scania.com, exitcode=0
Command end time 2015-02-11 16:03:56

==========================
Copying common functions script…
==========================

Command start time 2015-02-11 16:03:56

scp /usr/lib/python2.6/site-packages/ambari_commons
host=l1032lab.sss.se.scania.com, exitcode=0
Command end time 2015-02-11 16:03:56

==========================
Copying OS type check script…
==========================

Command start time 2015-02-11 16:03:56

scp /usr/lib/python2.6/site-packages/ambari_server/os_check_type.py
host=l1032lab.sss.se.scania.com, exitcode=0
Command end time 2015-02-11 16:03:56

==========================
Running OS type check…
==========================

Command start time 2015-02-11 16:03:56
Cluster primary/cluster OS type is redhat6 and local/current OS type is redhat6

Connection to l1032lab.sss.se.scania.com closed.
SSH command execution finished
host=l1032lab.sss.se.scania.com, exitcode=0
Command end time 2015-02-11 16:03:57

==========================
Checking ‘sudo’ package on remote host…
==========================

Command start time 2015-02-11 16:03:57
sudo-1.8.6p3-12.el6.x86_64

Connection to l1032lab.sss.se.scania.com closed.
SSH command execution finished
host=l1032lab.sss.se.scania.com, exitcode=0
Command end time 2015-02-11 16:03:58

==========================
Copying repo file to ‘tmp’ folder…
==========================

Command start time 2015-02-11 16:03:58

scp /etc/yum.repos.d/ambari.repo
host=l1032lab.sss.se.scania.com, exitcode=0
Command end time 2015-02-11 16:03:58

==========================
Moving file to repo dir…
==========================

Command start time 2015-02-11 16:03:58

Connection to l1032lab.sss.se.scania.com closed.
SSH command execution finished
host=l1032lab.sss.se.scania.com, exitcode=0
Command end time 2015-02-11 16:03:58

==========================
Copying setup script file…
==========================

Command start time 2015-02-11 16:03:58

scp /usr/lib/python2.6/site-packages/ambari_server/setupAgent.py
host=l1032lab.sss.se.scania.com, exitcode=0
Command end time 2015-02-11 16:03:59

==========================
Running setup agent script…
==========================

Command start time 2015-02-11 16:03:59
Automatic Agent registration timed out (timeout = 300 seconds). Check your network connectivity and retry registration, or use manual agent registration.

这些机器可以访问Internet,因此我推测没有必要配置本地存储库。在安装Ambari并继续执行之前,是否必须执行一些步骤?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-02-13 07:55:48

在花了大量的时间之后,我认为,尽管有互联网连接,当地的存储库将是必要的。我安装了Apache服务器,并使我的存储库可以按照文档访问。然后,在‘选项’中,用本地存储库url替换web URL,并注册主机。我还是不知道为什么当地的回购。是必要的(即使文档也提到,只有在互联网连接有限或没有连接的情况下才需要这些数据)

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/28472379

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档