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.

Adding new host to cluster fails

Highlighted

Adding new host to cluster fails

Expert Contributor

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

3 REPLIES 3

Re: Adding new host to cluster fails

Super Guru

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.

Re: Adding new host to cluster fails

Expert Contributor

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.

Re: Adding new host to cluster fails

Champion

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 

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