Reply
New Contributor
Posts: 3
Registered: ‎01-04-2017

Re: Problem with cloudera agent

[ Edited ]

i experienced this issue also. removing open jdk resolved it.

 

it appears open jdk add two extra columns to the output of the alternatives call. i belive it is setting the --family when it installs the alternative.

 

example:

/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.111-2.b15.el7_3.x86_64/jre/bin/java - family java-1.8.0-openjdk.x86_64 priority 1800111

 

Posts: 1,028
Topics: 1
Kudos: 257
Solutions: 127
Registered: ‎04-22-2014

Re: Problem with cloudera agent

Indeed, you are correct about the columns.

Please see my recent posts in the following thread for some more information:

 

Mismatched CDH versions: host has NONE but role expect 5

 

I outlined a proposed fix (expiremental) if you really need the JDK.  Cloudera engineering is reviewing to decide on how we will address it in future releases.

 

Cheers,

 

Ben

Explorer
Posts: 6
Registered: ‎11-21-2016

Re: Problem with cloudera agent

I had the same issue. After went through the alternative list, I found there are three more openjdk items, which are jre_openjdk, jre_1.8.0 and jre_1.8.0_openjdk. After I removed these three items, CM started distributing task.

New Contributor
Posts: 6
Registered: ‎04-26-2017

Re: Problem with cloudera agent

Please eloborate the fix , Using centos 7 and Cloudera Manager 5.11 . I'm not sure what can I do to resolve the issue .

New Contributor
Posts: 5
Registered: ‎01-25-2017

Re: Problem with cloudera agent

I have the same issue and see the same extra columns.
Please can you share what exact steps you followed to completely remove OpenJDK.
Contributor
Posts: 42
Registered: ‎05-12-2016

Re: Problem with cloudera agent

Find all openjdk packages:

rpm -qa "*jdk*"

and remove them with:

yum remove packageName
Explorer
Posts: 24
Registered: ‎11-15-2016

Re: Problem with cloudera agent

Is the issue fixed in a recent cloudera manager releases?

We are running 5.8.3 and we are experiencing the issue not for a jdk but for a custom alternatives.

 

I'm asking because is simplier for us to just upgrade the cloudera manager than fixing the alternatives name...

Explorer
Posts: 24
Registered: ‎11-15-2016

Re: Problem with cloudera agent

If anyone is interested i've updated to CM 5.12.1 and the issue has been fixed.

Highlighted
New Contributor
Posts: 4
Registered: ‎04-03-2019

Re: Problem with cloudera agent

Hi,

 

Could you please let me know how to solve this issue. I'm having the same error mentioned below. 

 

  File "/usr/lib64/cmf/agent/build/env/lib/python2.7/site-packages/cmf-5.8.2-py2.7.egg/cmf/agent.py", line 710, in start

    self._init_after_first_heartbeat_response(resp_data)

  File "/usr/lib64/cmf/agent/build/env/lib/python2.7/site-packages/cmf-5.8.2-py2.7.egg/cmf/agent.py", line 840, in _init_after_first_heartbeat_response

    self.client_configs.load()

  File "/usr/lib64/cmf/agent/build/env/lib/python2.7/site-packages/cmf-5.8.2-py2.7.egg/cmf/client_configs.py", line 682, in load

    new_deployed.update(self._lookup_alternatives(fname))

  File "/usr/lib64/cmf/agent/build/env/lib/python2.7/site-packages/cmf-5.8.2-py2.7.egg/cmf/client_configs.py", line 432, in _lookup_alternatives

    return self._parse_alternatives(alt_name, out)

  File "/usr/lib64/cmf/agent/build/env/lib/python2.7/site-packages/cmf-5.8.2-py2.7.egg/cmf/client_configs.py", line 444, in _parse_alternatives

    path, _, _, priority_str = line.rstrip().split(" ")

ValueError: too many values to unpack

 

 

 

I tried to see the jdk versions. But same jdk is present in all other servers. Not sure why am having issue only with this server.

 

[root@ip-10-0-1-32 ~]# rpm -qa "*jdk*"

java-1.8.0-openjdk-devel-1.8.0.144-0.b01.el7_4.x86_64

java-1.8.0-openjdk-headless-1.8.0.144-0.b01.el7_4.x86_64

jdk1.8.0_102-1.8.0_102-fcs.x86_64

copy-jdk-configs-2.2-3.el7.noarch

java-1.8.0-openjdk-1.8.0.144-0.b01.el7_4.x86_64

 

 

Thanks

 

Announcements