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

Adding new host to cluster fails



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/", line 578, in start
File "/usr/lib64/cmf/agent/src/cmf/", line 700, in _init_after_first_heartbeat_response
File "/usr/lib64/cmf/agent/src/cmf/", line 682, in load
File "/usr/lib64/cmf/agent/src/cmf/", line 432, in _lookup_alternatives
return self._parse_alternatives(alt_name, out)
File "/usr/lib64/cmf/agent/src/cmf/", line 444, in _parse_alternatives
path, _, _, priority_str = line.rstrip().split(" ")
ValueError: too many values to unpack

Posts: 1,001
Topics: 1
Kudos: 249
Solutions: 126
Registered: ‎04-22-2014

Re: Adding new host to cluster fails

Hi @RajeshBodolla,


Please see:


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.

Posts: 761
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: 96
Registered: ‎10-04-2017

Re: Adding new host to cluster fails


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


Had to tweek to make it work.