Cloudera Manager无法添加主机 [英] Cloudera Manager fails to add hosts

查看:1339
本文介绍了Cloudera Manager无法添加主机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已按照这里的步骤进行安装程序当我到达检查角色分配阶段时,我只看到一个托管主机: localhost.localdomain

I've followed the installation procedure from here and when I reach the Inspect Role Assignments stage I only see one managed host: localhost.localdomain.

任何后续尝试添加其他主机的结果相同:

Any subsequent attempts to add other hosts have the same outcome:


  • 每个群集主机安装成功

  • 且主机不显示为托管

我缺少什么?

更新:我不想回答我自己的问题,所以我在这里写我的回答。

Update: I don't like to answer my own questions so I am writing my answer here.

解决方案是如此明显,我的云没有看到它,并留下了问题未解决了一段时间,直到它打我,当做一些检查。

The solution is so obvious that I cloud not see it and left the problem unresolved for quite some time until it hit me while doing some checks.

> > 设置在安装时提供的 c>和 localhost.localdomain witch误导了Cloudera设置,基本上使所有主机具有相同的IP和主机名。

The hostname provided at installation time was set in /etc/hosts for the IP 127.0.0.1 and localhost.localdomain witch was misleading for the Cloudera setup and basically made all hosts to have the same IP and hostname.

我已使用 hostname.domain.local 重做设置,现在 hosts 文件功能单独具有特定IP和主机名,并且 /etc/resolv.conf 文件具有搜索domain.local 的行。

I've redone the setup with hostname.domain.local and now the hosts file feature a separate line with the specific IP and hostname and the /etc/resolv.conf file has line with search domain.local.

即使你这次不愉快的经历后,我认为安装文档应该具有这些小细节,但它就像说明了显而易见的

Even thou after this unpleasant experience I think that the installation documentation should feature these small details but, it's like stating the obvious.

推荐答案

看起来像Cloudera(可能是最近)向他们的文档。我一直在使用这个问题一段时间,我的关键是获得以下命令以给出正确的结果:

Looks like Cloudera (possibly recently) added a blurb about this to their documentation. I've been having this problem for a while, and the key for me was getting the following command to give correct results:

$ host -v -t A `hostname`

我的设置涉及设置本地DNS服务器,也许只是在每个节点上有相同的/ etc / hosts就足够了。 YMMV。

My soution involved setting up a local DNS server, but perhaps just having the same /etc/hosts on every node would have been sufficient. YMMV.

这篇关于Cloudera Manager无法添加主机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆