2016-06-30 2 views
0

우분투 14.04에 cloudera를 설치하려고 할 때 다음 오류가 발생합니다.우분투에 cloudera를 설치하는 동안 에이전트에서 하트 비트를 수신하지 못했습니다. 14.04

Installation failed. Failed to receive heartbeat from agent. 
Ensure that the host's hostname is configured properly. 
Ensure that port 7182 is accessible on the Cloudera Manager Server (check firewall rules). 
Ensure that ports 9000 and 9001 are not in use 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). 
If Use TLS Encryption for Agents is enabled in Cloudera Manager (Administration -> Settings -> Security), ensure that /etc/cloudera-scm-agent/config.ini has use_tls=1 on the host being added. Restart the corresponding agent and click the Retry link here. 

그리고 생성 된 로그입니다.

>>ProtocolError: <ProtocolError for 127.0.0.1/RPC2: 401 Unauthorized> 
>>[30/Jun/2016 01:10:51 +0000] 20081 MainThread agent INFO Trying to connect to newly launched supervisor (Attempt 5) 
>>[30/Jun/2016 01:10:51 +0000] 20081 MainThread agent ERROR Failed! trying again in 1 second(s) 
>>Traceback (most recent call last): 
>> File "/usr/lib/cmf/agent/build/env/lib/python2.7/site-packages/cmf-5.7.1-py2.7.egg/cmf/agent.py", line 2161, in connect_to_new_supervisor 
>> self.get_supervisor_process_info() 
>> File "/usr/lib/cmf/agent/build/env/lib/python2.7/site-packages/cmf-5.7.1-py2.7.egg/cmf/agent.py", line 2183, in get_supervisor_process_info 
>> self.identifier = self.supervisor_client.supervisor.getIdentification() 
>> File "/usr/lib/python2.7/xmlrpclib.py", line 1233, in __call__ 
>> return self.__send(self.__name, args) 
>> File "/usr/lib/python2.7/xmlrpclib.py", line 1587, in __request 
>> verbose=self.__verbose 
>> File "/usr/lib/cmf/agent/build/env/lib/python2.7/site-packages/supervisor-3.0-py2.7.egg/supervisor/xmlrpc.py", line 470, in request 
>> '') 
>>ProtocolError: <ProtocolError for 127.0.0.1/RPC2: 401 Unauthorized> 
>>[30/Jun/2016 01:10:51 +0000] 20081 MainThread agent ERROR Failed to connect to newly launched supervisor. Agent will exit 
>>[30/Jun/2016 01:10:51 +0000] 20081 MainThread agent INFO Stopping agent... 
>>[30/Jun/2016 01:10:51 +0000] 20081 MainThread agent INFO No extant cgroups; unmounting any cgroup roots 
>>[30/Jun/2016 01:10:51 +0000] 20081 MainThread agent INFO Cleaning up daemon 
>>[30/Jun/2016 01:10:51 +0000] 20081 Dummy-1 agent INFO Stopping agent... 
>>[30/Jun/2016 01:10:51 +0000] 20081 Dummy-1 agent INFO No extant cgroups; unmounting any cgroup roots 
>>[30/Jun/2016 01:10:51 +0000] 20081 Dummy-1 agent ERROR Shutdown callback failed. 
>>Traceback (most recent call last): 
>> File "/usr/lib/cmf/agent/build/env/lib/python2.7/site-packages/cmf-5.7.1-py2.7.egg/cmf/agent.py", line 2764, in stop 
>> f() 
>> File "/usr/lib/python2.7/asyncore.py", line 409, in close 
>> self.socket.close() 
>> File "/usr/lib/python2.7/asyncore.py", line 636, in close 
>> os.close(self.fd) 
>>OSError: [Errno 9] Bad file descriptor 
>>[30/Jun/2016 01:10:51 +0000] 20081 Dummy-1 agent INFO Cleaning up daemon 
>>[30/Jun/2016 01:12:58 +0000] 20663 MainThread agent INFO SCM Agent Version: 5.7.1 
>>[30/Jun/2016 01:12:58 +0000] 20663 MainThread agent INFO Agent Protocol Version: 4 
>>[30/Jun/2016 01:12:58 +0000] 20663 MainThread agent INFO Using Host ID: f7f7aaf2-8291-4659-a415-bdd18ca203c3 
>>[30/Jun/2016 01:12:58 +0000] 20663 MainThread agent INFO Using directory: /run/cloudera-scm-agent 
>>[30/Jun/2016 01:12:58 +0000] 20663 MainThread agent INFO Using supervisor binary path: /usr/lib/cmf/agent/build/env/bin/supervisord 
>>[30/Jun/2016 01:12:58 +0000] 20663 MainThread agent INFO Neither verify_cert_file nor verify_cert_dir are configured. Not performing validation of server certificates in HTTPS communication. These options can be configured in this agent's config.ini file to enable certificate validation. 
>>[30/Jun/2016 01:12:58 +0000] 20663 MainThread agent INFO Agent Logging Level: INFO 
>>[30/Jun/2016 01:12:58 +0000] 20663 MainThread agent INFO No command line vars 
>>[30/Jun/2016 01:12:58 +0000] 20663 MainThread agent INFO Found database jar: /usr/share/java/mysql-connector-java.jar 
>>[30/Jun/2016 01:12:58 +0000] 20663 MainThread agent INFO Missing database jar: /usr/share/java/oracle-connector-java.jar (normal, if you're not using this database type) 
>>[30/Jun/2016 01:12:58 +0000] 20663 MainThread agent INFO Found database jar: /usr/share/cmf/lib/postgresql-9.0-801.jdbc4.jar 
>>[30/Jun/2016 01:12:58 +0000] 20663 MainThread agent INFO Agent starting as pid 20663 user root(0) group root(0). 
e-connector-java.jar (normal, if you're not using this database type) 
>>[30/Jun/2016 01:12:58 +0000] 20663 MainThread agent INFO Found database jar: /usr/share/cmf/lib/postgresql-9.0-801.jdbc4.jar 
>>[30/Jun/2016 01:12:58 +0000] 20663 MainThread agent INFO Agent starting as pid 20663 user root(0) group root(0). 
END (0) 
end of agent logs. 
scm agent started 

이것은 현재 내가 etc/hosts에있는 것입니다.

127.0.0.1 localhost.localdomain localhost 
127.0.1.1 humworld-Inc 

# The following lines are desirable for IPv6 capable hosts 
::1  ip6-localhost ip6-loopback 
fe00::0 ip6-localnet 
ff00::0 ip6-mcastprefix 
ff02::1 ip6-allnodes 
ff02::2 ip6-allrouters 

나는 /opt/cloudera-manager/cm-5.7.1/etc/cloudera-scm-agent/config.ini 내부 7182로 SERVER_HOST localhost를 같은 값과 SERVER_PORT을 보내고 있습니다. 나는 아무것도 바꿀 필요가있다, 이것으로 나를 도와주세요, 나는 완전히 아이디어에서 벗어났습니다.

답변

0

ProtocolError : - 동일한 문제가 발생했습니다. 명령을 사용하여 명령 줄에서 수퍼바이저를 죽일 수 있습니다. 나에게 맞는 다른 해결책은 해당 호스트에서 cloudera-scm-agent 패키지를 제거하고 다시 설치하는 것입니다.

0
netstat -tupnl |grep 19001 \\ default supervisord_port=19001 

당신이

tcp 0 0 127.0.0.1:19001 0.0.0.0:* LISTEN 4833/python 

4833 같은 결과를 얻을 것이다 것은 관리자의 프로세스 ID입니다. 프로세스를 종료하고 cloudera 에이전트를 다시 시작하십시오.

kill -9 4833 
service cloudera-scm-agent restart 

그리고 문제가 지속되면 에이전트 로그 파일을 확인하십시오.

관련 문제