Support Questions

Find answers, ask questions, and share your expertise

JAVA_HOME not set for clients

avatar
Explorer

CDM version: 5.7.1

I've set the Java Home Directory in the hosts config to /opt/java/jdk

It's picked up properly by all services, but not by clients

 

For example running the yarn command, it will complain JAVA_HOME is not set

 

The file used to check for JAVA_HOME is:

/opt/cloudera/parcels/CDH-5.7.1-1.cdh5.7.1.p0.11/lib/bigtop-utils/bigtop-detect-javahome

 

Apparently this file is not checking the hosts config setting. I'm surprised by that.

The info for this option says:

Explicitly set the value of JAVA_HOME for all processes. This will override the auto-detection logic that is normally used.

 

Why doesn't it apply to client processes?

 

thanks

1 ACCEPTED SOLUTION

avatar
Explorer

a case was opened with support, confirmed that the Java home directory override currently only applies to servers, not to clients.This can lead to Java version inconsistencies.

 

This will be resolved in a future version, and can be tracked via OPSAPS-40053

 

To specify a Java home directory for all clients, set the variable in file /etc/default/bigtop-utils

 

View solution in original post

2 REPLIES 2

avatar
Contributor

avatar
Explorer

a case was opened with support, confirmed that the Java home directory override currently only applies to servers, not to clients.This can lead to Java version inconsistencies.

 

This will be resolved in a future version, and can be tracked via OPSAPS-40053

 

To specify a Java home directory for all clients, set the variable in file /etc/default/bigtop-utils