Dan*_*hai 5 hadoop cloudera cloudera-manager
我尝试在 Ubuntu 12.04.1 LTS 上使用标准版本安装 cloudera 管理器,当我想添加新主机时,出现下一个错误:
Installation failed.Failed to receive heartbeat from agent.
Ensure that the host's hostname is configured properly.
Ensure that port 7182 is accesible on the Cloudera Manager server (check firewall rules).
Ensure that ports 9000 an 9001 are free on the host being added.
Check agent logs in /var/log/cloudera-scm-agent/ on the host being added (some of the logs can be found in the installation details).
Run Code Online (Sandbox Code Playgroud)
在/etc/hosts文件中,我将其配置为:
127.0.0.1 localhost
127.0.0.1 hadoop-ubuntu
192.168.5.xyz hadoop-ubuntu.dana.local hadoop-ubuntu
192.168.3.xyz ro-m81.dana.local ro-m81
192.168.3.abc ro-m41.dana.local ro-m41
Run Code Online (Sandbox Code Playgroud)
以下几行适用于支持 IPv6 的主机
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
The **/var/log/cloudera-scm-agent/cloudera-scm-agent.log** shows the next error::
[09/Oct/2013 16:04:23 +0000] 4532 MainThread agent ERROR Heartbeating to 192.168.5.xyz:7182 failed.
Traceback (most recent call last):
File "/usr/lib64/cmf/agent/src/cmf/agent.py", line 747, in send_heartbeat
response = self.requestor.request('heartbeat', dict(request=heartbeat))
File "/usr/lib64/cmf/agent/build/env/lib/python2.6/site-packages/avro-1.6.3-py2.6.egg/avro/ipc.py", line 145, in request
return self.issue_request(call_request, message_name, request_datum)
File "/usr/lib64/cmf/agent/build/env/lib/python2.6/site-packages/avro-1.6.3-py2.6.egg/avro/ipc.py", line 256, in issue_request
call_response = self.transceiver.transceive(call_request)
File "/usr/lib64/cmf/agent/build/env/lib/python2.6/site-packages/avro-1.6.3-py2.6.egg/avro/ipc.py", line 485, in transceive
result = self.read_framed_message()
File "/usr/lib64/cmf/agent/build/env/lib/python2.6/site-packages/avro-1.6.3-py2.6.egg/avro/ipc.py", line 489, in read_framed_message
response = self.conn.getresponse()
File "/usr/lib64/python2.6/httplib.py", line 990, in getresponse
response.begin()
File "/usr/lib64/python2.6/httplib.py", line 391, in begin
version, status, reason = self._read_status()
File "/usr/lib64/python2.6/httplib.py", line 349, in _read_status
line = self.fp.readline()
File "/usr/lib64/python2.6/socket.py", line 433, in readline
data = recv(1)
error: [Errno 104] Connection reset by peer
Run Code Online (Sandbox Code Playgroud)
请帮助我找出我收到此错误的原因或我遗漏了什么。
我遇到过同样的问题。这就是对我有用的技巧。
输入 ifconfig 并找到您的 IP 地址。不是 127.0.0.1。
输入 $hostname 并找到您的主机名
编辑/etc/hosts 文件
在那里添加您的 IP 地址条目。就像是
192.168.8.xxx hostname.test.com hostname
Run Code Online (Sandbox Code Playgroud)
重启cloudera服务。访问 sonic.test.com:7180 并重试。它应该有效。即使不起作用,也可以访问 http://hostname.test.com:7180/cmf/home检查主机的状态。
事实证明,尽管我收到心跳错误,但主机实际上已启动并正在运行。
| 归档时间: |
|
| 查看次数: |
16827 次 |
| 最近记录: |