Support Questions

Find answers, ask questions, and share your expertise

openJDK install path

avatar
Expert Contributor

Hi,

In the Cloudera Installation guide ver 5.16  it says the JDK must be installed at /usr/java/jdk-version.

However while installing openJDK it gets installed as:

/usr/bin/java -> /etc/alternatives/java

/etc/alternatives/java -> /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.191.b12-1.el7_6.x86_64/jre/bin/java

there is no /usr/java created. Is this going to cause any install issues?

Thanks.

 

 

1 ACCEPTED SOLUTION

avatar
Master Guru

@ebeb,

 

Indeed it is listed in:

https://www.cloudera.com/documentation/enterprise/6/release-notes/topics/rg_java_requirements.html
OpenJDK 8 is supported in Cloudera Enterprise 6.1.0 and higher, as well as Cloudera Enterprise 5.16.1 and higher.

 

This documentation explains how to configure the java location:

https://www.cloudera.com/documentation/enterprise/upgrade/topics/ug_jdk8.html#id_pc1_dny_qfb

 

Servers and clients will attempt to find Java in "usual" locations for your OS.  If it cannot find Java or you want to be sure the correct jdk is used, you can use the above guide to set the jdk location.

View solution in original post

4 REPLIES 4

avatar
Explorer

Hi,

 

  Cloudera is always recommending to install supported version of Oracle JDK and not  Open JDK. 

 

  But if you want to go with Open JDK , you can simply have symbolic link created on suggested path.

avatar
Expert Contributor

As of CDH 5.16 version openJDK is now supported you can read in the 5.16 Install guide. This may be due to Oracle will no longer provide updates to Oracle JDK without commercal license from 2019. 

avatar
Master Guru

@ebeb,

 

Indeed it is listed in:

https://www.cloudera.com/documentation/enterprise/6/release-notes/topics/rg_java_requirements.html
OpenJDK 8 is supported in Cloudera Enterprise 6.1.0 and higher, as well as Cloudera Enterprise 5.16.1 and higher.

 

This documentation explains how to configure the java location:

https://www.cloudera.com/documentation/enterprise/upgrade/topics/ug_jdk8.html#id_pc1_dny_qfb

 

Servers and clients will attempt to find Java in "usual" locations for your OS.  If it cannot find Java or you want to be sure the correct jdk is used, you can use the above guide to set the jdk location.

avatar
Expert Contributor
@bgooley
Thanks a bunch! This is good info.
I do see the below now which means /usr/lib/jvm is good for openJDK.
Note: Cloudera strongly recommends installing Oracle JDK at /usr/java/<jdk-version> and OpenJDK at /usr/lib/jvm (or /usr/lib64/jvm on SLES 12), which allows Cloudera Manager to auto-detect and use the correct JDK version.

Unfortunately in the CDH 5.16 install guide it doesnt clarify that for openJDK /usr/lib/jvm is good path but makes a blanket statement that The JDK must be installed at /usr/java/jdk-version. Hopefully they will update the doc in future. https://www.cloudera.com/documentation/enterprise/5-16-x/topics/cdh_ig_jdk_installation.html .