Reply
Contributor
Posts: 59
Registered: ‎11-24-2017

Which version of java is used in CM-cluster?

[ Edited ]

Hi everyone, which version of java is used in the cluster?

 

I found:

 

/usr/java/jdk1.7.0_67-cloudera/bin/javac
/usr/java/jdk1.6.0_31/bin/javac
/usr/java/jdk1.6.0_31/sample/javac

 

Is the one with "cloudera" the used one?

Because java -version gives:

java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b04)
Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode)

Thus I am not sure if Cloudera Manager and other tools are configured to use jdk 6 or 7.

 

 

Thanks for any info

Posts: 451
Topics: 13
Kudos: 75
Solutions: 40
Registered: ‎09-02-2016

Re: Which version of java is used in CM-cluster?

@ludof

 

Please run the below command, it will show you which java version being used currently

 

echo $JAVA_HOME

 

 

Highlighted
Posts: 589
Topics: 1
Kudos: 140
Solutions: 74
Registered: ‎04-22-2014

Re: Which version of java is used in CM-cluster?

@ludof,

 

As mentioned, if JAVA_HOME is set, that is generally what java procesess on the hosts will use.  If JAVA_HOME is not set then the process will do its best to identify the release to use.

 

If you wish, you can remove the java versions you do not need.

 

The JVM versions you are using are old.  I recommend you consider installing the latest supported JVM release for your verison of CM/CDH.

 

For more information on supported JDKs:

 

https://www.cloudera.com/documentation/enterprise/release-notes/topics/rn_consolidated_pcm.html#pcm_...

 

For more information regarding installation of a JDK:

 

https://www.cloudera.com/documentation/enterprise/latest/topics/cdh_ig_jdk_installation.html

 

Steps to configure a CDH and Management Service to use a specific JDK:

 

https://www.cloudera.com/documentation/enterprise/latest/topics/cm_ig_java_home_location.html#cmig_t...

 

We recommend removing any JDKs from your system if they are not what you want to use.

The JDK versions you have now were installed from Cloudera's package repository, but they are older and Cloudera does not intend to supply newer releases in its repository.  Since JDK 1.6 is only installed to support legacy CDH 4 clusters, you can safely remove JDK 1.6.0_31 from your system unless you are using it for some other purpose (not CDH).

 

If you have specific questions, please let us know

 

Contributor
Posts: 59
Registered: ‎11-24-2017

Re: Which version of java is used in CM-cluster?

Thank you for the answer

 

The JAVA_HOME is not set, and I've installed the jdk version from the CDH repository. Then I guess the Cloudera Manager also installed the jdk 6 during the isntallation/configuration phase.

 

So you recommend to uninstall jdk 6 and 7 and install the latest supported jdk on each host?

Announcements