2013-10-09 37 views
4

我嘗試在Ubuntu 12.04.1上安裝LTS cloudera管理器使用標準版本,當我想添加新主機時,出現下一個錯誤:Cloudera Manager安裝無法從代理接收心跳 - 將新主機添加到集羣

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). 

/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 

以下行期望用於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 

請幫我找到爲什麼我得到這個錯誤或我錯過了什麼。

+0

有沒有人找到比編輯配置文件更好的解決方案? – Bhushan

回答

1

我有同樣的問題。這就是我的伎倆。

輸入ifconfig並找到你的IP地址。不是127.0.0.1。

類型$主機名,找到你的主機名

編輯/etc/hosts中文件

那邊添加一個條目爲您的ip地址。像

192.168.8.xxx hostname.test.com hostname 

重新啓動cloudera服務。去sonic.test.com:7180然後再試一次。 它應該工作。即使沒有工作,去http://hostname.test.com:7180/cmf/home檢查主機的狀態。

事實證明,即使我出現心跳錯誤,主機實際上已啓動並正在運行。

0

在羣集中的所有節點上檢查主機文件後,請確保您在羣集節點(安裝程序除外)上的安裝程序和端口9000上打開端口7180和7182。

我得到了「檢查失敗。IO異常拋出」從Cloudera的錯誤安裝,直到我看着在安裝程序(服務器)日誌,看到9000

-1

我的客戶無法在端口進行通訊與你同樣的問題,我終於修好了。

我的問題是,要代理的cloudera-scm-agent與服務器的cloudera-scm-server不同的版本,你可以使用dpkgyum檢查自己。

相關問題