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
File "/usr/lib64/cmf/agent/src/cmf/agent.py", line 700, in _init_after_first_heartbeat_response
File "/usr/lib64/cmf/agent/src/cmf/client_configs.py", line 682, in load
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
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.
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.
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