Reply
Expert Contributor
Posts: 85
Registered: ‎10-04-2017

Adding new host to cluster fails

Hi,

 

Our cluster is in RHEL 6 and i'm trying to add a new gateway that is on CentOS7. I have manually inatalled the agents but starting the agent shows below error. And adding the host to cluster gets stuck in activating the parcel.

 

[28/Jun/2018 18:49:04 +0000] 25958 MainThread downloader INFO Downloader path: /opt/cloudera/parcel-cache
[28/Jun/2018 18:49:04 +0000] 25958 MainThread parcel_cache INFO Using /opt/cloudera/parcel-cache for parcel cache
[28/Jun/2018 18:49:04 +0000] 25958 MainThread agent ERROR Caught unexpected exception in main loop.
Traceback (most recent call last):
File "/usr/lib64/cmf/agent/src/cmf/agent.py", line 578, in start
self._init_after_first_heartbeat_response(heartbeat_response["data"])
File "/usr/lib64/cmf/agent/src/cmf/agent.py", line 700, in _init_after_first_heartbeat_response
self.client_configs.load()
File "/usr/lib64/cmf/agent/src/cmf/client_configs.py", line 682, in load
new_deployed.update(self._lookup_alternatives(fname))
File "/usr/lib64/cmf/agent/src/cmf/client_configs.py", line 432, in _lookup_alternatives
return self._parse_alternatives(alt_name, out)
File "/usr/lib64/cmf/agent/src/cmf/client_configs.py", line 444, in _parse_alternatives
path, _, _, priority_str = line.rstrip().split(" ")
ValueError: too many values to unpack
^C

Posts: 696
Topics: 1
Kudos: 162
Solutions: 87
Registered: ‎04-22-2014

Re: Adding new host to cluster fails

Hi @RajeshBodolla,

 

Please see:

 

http://community.cloudera.com/t5/Cloudera-Manager-Installation/Mismatched-CDH-versions-host-has-NONE...

 

A quick solution may be to uninstall OpenJDK if it is installed on that new gateway host and make sure that alternatives do not show OpenJDK.

The latest releases of Cloudera Manager have fixed this issue in CM.

Highlighted
Champion
Posts: 735
Registered: ‎05-16-2016

Re: Adding new host to cluster fails

This error comes when you have multiple java being installed in the host . 

check these areas - /usr/java/ 

or perform a 

alternatives --config java

use the one with -cloudera and remove the rest if you dont need it 

Expert Contributor
Posts: 85
Registered: ‎10-04-2017

Re: Adding new host to cluster fails

Hi,

Yes it was infact the java version issue and compatability between CM5.5 and Centos 7.4.

 

Had to tweek client_configs.py to make it work.

Announcements