- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
openJDK install path
- Labels:
-
Cloudera Manager
Created ‎12-18-2018 03:56 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Created ‎12-19-2018 01:56 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Created on ‎12-19-2018 03:49 AM - edited ‎12-19-2018 03:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Created ‎12-19-2018 05:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Created ‎12-19-2018 01:56 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Created ‎12-19-2018 02:23 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 .
