Posts: 23
Registered: ‎05-22-2017

Error installing Parcel (Adding host to cluster) - CDH 5.11



I am seeing below errors in agent logs, while installing parcels on hosts.


I tried un-installing Open JDK, but still seeing the same in logs. Can you please let me how this can be resolved.



Traceback (most recent call last):
File "/usr/lib64/cmf/agent/build/env/lib/python2.7/site-packages/cmf-5.11.0-py2.7.egg/cmf/", line 710, in __issue_heartbeat
File "/usr/lib64/cmf/agent/build/env/lib/python2.7/site-packages/cmf-5.11.0-py2.7.egg/cmf/", line 948, in _init_after_first_heartbeat_response
File "/usr/lib64/cmf/agent/build/env/lib/python2.7/site-packages/cmf-5.11.0-py2.7.egg/cmf/", line 713, in load
File "/usr/lib64/cmf/agent/build/env/lib/python2.7/site-packages/cmf-5.11.0-py2.7.egg/cmf/", line 434, in _lookup_alternatives
return self._parse_alternatives(alt_name, out)
File "/usr/lib64/cmf/agent/build/env/lib/python2.7/site-packages/cmf-5.11.0-py2.7.egg/cmf/", line 446, in _parse_alternatives
path, _, _, priority_str = line.rstrip().split(" ")
ValueError: too many values to unpack

Posts: 23
Registered: ‎05-22-2017

Re: Error installing Parcel (Adding host to cluster) - CDH 5.11

The issue was indeed with Open JDK.


alternatives --remove <cmd>  <path>    --- didnt remove the entry for java alternatives.


I manually deleted all the dir under /usr/lib/jvm 


and removed the entries related to Open JDK from /var/lib/alternatives/java file.


Only after manually removing those entries form the /var/lib/alternatives/java file, the alternatives --config java didnt showed the option for open jdk.


The issue has been resolved now.