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

  1. Open /etc/default/cloudera-scm-agent.
  2. 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
  3. Save and close the cloudera-scm-agent file.
  4. Restart the Cloudera Manager Agent using the following command:
    sudo service cloudera-scm-agent restart