Configuring another version of OpenJDK for Unravel

OpenJDK version 1.8.0_232 is packaged with Unravel. However, if you are using another version of OpenJDK, use the following steps to configure that version with Unravel.

  1. Backup the contents of the jre directory that is packaged with the Unravel installation:

    mv /usr/local/unravel/jre/* /root/jre_orig/
  2. Download and Install any version of OpenJDK.

  3. In the newly installed OpenJDK, locate the jre directory and copy the content of this directory to Unravel's jre directory:

    cp -r /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.<ver>.b09-2.el7_8.x86_64/jre/* /usr/local/unravel/jre/
  4. Cross-verify the java version:

    cmd - /usr/local/unravel/jre/bin/java -version
    Output -
    openjdk version "1.8.0_252"
    OpenJDK Runtime Environment (build 1.8.0_<ver>-b09)
    OpenJDK 64-Bit Server VM (build 25.<ver>-b09, mixed mode)
  5. Using a vi editor, open file /usr/local/unravel/dbin/get_daemon_basics.sh . Go to line number - 341 and make the following changes:

    # ALPN_AGENT="-javaagent:${UNRAVEL_INSTALL_DIR}/dlib/agent/alpn-agent.jar"ALPN_AGENT=""
  6. Restart all the daemons:

    service unravel_all.sh restart