Modifying Service Settings
You can modify service settings to use your custom JAVA_HOME. This is done as an alternative to modifying the CMF_AGENT_JAVA_HOME environment variable. Modifying service settings to use a custom JAVA_HOME applies to all nodes in the cluster, but you must repeat this process of updating JAVA_HOME for all services. To modify service settings to use your custom JAVA_HOME
- Open the Cloudera Manager Admin Console, click any service that fails to start because the JDK location is misconfigured, and click Configuration.
- Under Service-Wide, click Advanced.
- Click the Value cell for the Service Environment Safety Valve and add your custom java home to the property here. For example, you might enter the value JAVA_HOME=/opt/java/jdk6.
- Click Save Changes.
- If your deployment includes Cloudera Management services, add your custom JAVA_HOME value to /usr/share/cmf/bin/cmf-server.
- In the Cloudera Manager Admin Console, for the service you are configuring, click Actions and click Restart.
- Repeat this process for all services that need the updated JAVA_HOME value.
To see how Cloudera Manager chooses a default JDK, review the contents of /usr/lib64/cmf/service/common/cloudera-config.sh.