Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Cloudera scm agent not able to register with server

Highlighted

Cloudera scm agent not able to register with server

New Contributor

 

 

Traceback (most recent call last):
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1528, in handle_heartbeat_response
self._handle_heartbeat_response(response)
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1660, in _handle_heartbeat_response
response["flood_torrent_port"])
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1900, in handle_heartbeat_flood
flood_dir)
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/downloader.py", line 180, in __init__
self.client = TorrentRPCClient(server)
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/flood/util/rpc.py", line 118, in __init__
server = resolveHostPort(server, self.DEFAULT_RPC_PORT)
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/flood/util/rpc.py", line 33, in resolveHostPort
return HostPort(socket.gethostbyname(w[0]), port)
gaierror: [Errno -2] Name or service not known
[04/Mar/2020 14:24:17 +0000] 4498 MainThread agent ERROR Failed to handle Heartbeat Response:

3 REPLIES 3
Highlighted

Re: Cloudera scm agent not able to register with server

Expert Contributor

The error "gaierror: [Errno -2] Name or service not known" implies hostname resolution isn't happening. When you run hostname -f is it working? Do you have an entry in place for localhost in your /etc/hosts file? 

Highlighted

Re: Cloudera scm agent not able to register with server

New Contributor

hostname -f is giving the correct name

And added all the hosts in /etc/hosts in all servers

Re: Cloudera scm agent not able to register with server

Expert Contributor

What is the result you get for this command

python -c "import socket; print socket.getfqdn(); print socket.gethostbyname(socket.getfqdn())"

Per your previous comment I understand you added all hosts in /etc/hosts - Does that include the entry for localhost too?

i.e these entries?

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

 

Don't have an account?
Coming from Hortonworks? Activate your account here