Support Questions

Find answers, ask questions, and share your expertise

ERROR MESSAGE:This host is not in contact with the Host Monitor.

avatar
Contributor

Hi ,

 

I want to add a host to cluster as a datanode.

 

Now i can find the host in host list and adding the New Hosts to existing Cluster.

it looks it takes time because i began it 1hours ago but it is still running.

 

And i can find it in the cluster with new windows even the processing is running.  

Bus Health test is bad.

"This host is in contact with the Cloudera Manager Server. This host is not in contact with the Host Monitor."

 

How can i investigate it ?

 

2.jpg1.jpg

 

 

 

 

 

 

 

 

1 ACCEPTED SOLUTION

avatar
Contributor

I installed the host again , and the problem has been fixed. 

 

I'm not sure the reason.

View solution in original post

19 REPLIES 19

avatar
Champion

I am sorry confused here you intial problem is  quote from ur post "This host is not in contact with the Host Monitor."

now you say  HOST MONITOR service and other datanode (existing) is working fine - can i assume that the problem is solved or you have new problem arising . 

 

also please share the host monitor and cm agent logs . 

avatar
Contributor
NO ,

The problem has not be resolved.

avatar
New Contributor

I know this is a really old post but just for knowledge I'm sharing my solution. For me the restart of the agent in the CDH None host solved the problem

sudo service cloudera-scm-agent restart

 

avatar
Contributor

I created a new ticket for this problem as a summury, but i can't find it , why?

 

I move it to here.

 

I want to add a host to existing cluster as a datanode.

But the host don't work fine as expected. 

1, I confirmed status of agent and it is working fine.

cloudera-scm-agent (pid  162575) is running...

2, I restarted the cluster and CDM , the problem can't be resolve.

3, I stopped agent and add the host and restart agent again ,  the problem can't be resolve also.

 

Looking forward to your response.

And please let me know if you want more info.

 

Thanks,

Wenjie

 

error3.pngerror2.pngerror1.png

avatar
Contributor

I installed the host again , and the problem has been fixed. 

 

I'm not sure the reason.

avatar
Champion

sounds good . 

 

avatar
Contributor

We are facing the same issue. What steps did you follow to install the host again?

 

avatar
Champion

Could you share any error logs or screenshot ? where are you facing the issue ? 

Were you able to see the CDH version in the Host summary ? 

avatar
Contributor

Hi

 

Hi,

 

I removed 2 nodes from the cluster and tried to add them back from managed hosts and the download , distribute is successful but stuck at the activation.

 

Capture.PNG

But the 2 nodes got added to the cluster and show up in the hosts but CDH version is NONE.(Host in bad health)

 

Host Agent status:

This host is in contact with the Cloudera Manager Server. This host is not in contact with the Host Monitor.
 
Not able to run any services on these nodes and getting connection refusal to all ports except "7180"

 

Error in the cloudera-scm-agent

 

Caught unexpected exception in main loop.
Traceback (most recent call last):
  File "/usr/lib64/cmf/agent/build/env/lib/python2.7/site-packages/cmf-5.9.0-py2.7.egg/cmf/agent.py", line 758, in start
    self._init_after_first_heartbeat_response(resp_data)
  File "/usr/lib64/cmf/agent/build/env/lib/python2.7/site-packages/cmf-5.9.0-py2.7.egg/cmf/agent.py", line 938, in _init_after_first_heartbeat_response
    self.client_configs.load()
  File "/usr/lib64/cmf/agent/build/env/lib/python2.7/site-packages/cmf-5.9.0-py2.7.egg/cmf/client_configs.py", line 686, in load
    new_deployed.update(self._lookup_alternatives(fname))
  File "/usr/lib64/cmf/agent/build/env/lib/python2.7/site-packages/cmf-5.9.0-py2.7.egg/cmf/client_configs.py", line 432, in _lookup_alternatives
    return self._parse_alternatives(alt_name, out)
  File "/usr/lib64/cmf/agent/build/env/lib/python2.7/site-packages/cmf-5.9.0-py2.7.egg/cmf/client_configs.py", line 444, in _parse_alternatives
    path, _, _, priority_str = line.rstrip().split(" ")
ValueError: too many values to unpack

 

 

Could you please help me with this? 

avatar
New Contributor

This issue in RHEL 7.3 

1. We edited the /usr/lib64/cmf/agent/build/env/lib/python2.7/site-packages/cmf-5.9.0-py2.7.egg/cmf/client_configs.py file

2. Searched for "path, _" and line no 444

3. commented out the #path, _, _, priority_str = line.rstrip().split(" ") line.

4. Added three lines and add one tab at the beginning to match the other lines in the file:
thisLine = line.rstrip().split(" ")
path = thisLine[0]
priority_str = thisLine[-1]

5. The end result should look like:
#path, _, _, priority_str = line.rstrip().split(" ")
thisLine = line.rstrip().split(" ")
path = thisLine[0]
priority_str = thisLine[-1]

6 Restarted the agent:
sudo service cloudera-scm-agent restart

It started working 

 

Thanks

Narendar