Modifying CMF_AGENT_JAVA_HOME
In many cases, modifying the CMF_AGENT_JAVA_HOME environment variable is an effective solution for updating the configuration to accommodate a custom JAVA_HOME. Modifying the CMF_AGENT_JAVA_HOME environment variable enables all services on the host to find the JDK. To modify the CMF_AGENT_JAVA_HOME environment variable
- Open /etc/default/cloudera-scm-agent.
- Set the CMF_AGENT_JAVA_HOME environment variable to the java home
in your environment. For example, you might modify the file to include the following
line:
export CMF_AGENT_JAVA_HOME=/usr/custom_java
- Save and close the cloudera-scm-agent file.
- Restart the Cloudera Manager Agent using the following command:
sudo service cloudera-scm-agent restart