Upgrading JDK/JRE with Talend ESB runtime as a service may lead to runtime start failure

Problem Description

After upgrading JDK/JRE:

  • Starting runtime with Linux services, start runtime with the old version of JDK/JRE, while using the start script runtime uses the updated version.

  • If the old version of JDK/JRE has been removed, runtime no longer starts using Linux services.

    ./talend-runtime-6.3.1-service start
    Starting Talend Runtime 6.3.1...
    [root@runtime631 bin]# ps -edf | grep karaf
    talendu+ 16082 16080 99 20:26 ? 00:00:17 /usr/java/jdk1.8.0_151/jre/bin/java ...
    
    # ./start
    [root@runtime631 bin]# ps -edf | grep kara
    root 18828 1 99 20:44 pts/0 00:00:10 /usr/bin/java -server -Xms256M -Xmx1024M -XX:+UnlockDiagnosticVMOptions -XX:+UnsyncloadClass -Dcom.sun.management.jmxremote -Djava.endorsed.dirs=/usr/java/jdk1.8.0_191-amd64/jre/jre/lib/endorsed:/usr/java/jdk1.8.0_191-amd64/jre/lib

 

Root Cause

The runtime is started using wrapper, the commandline that is called by the service startup script is:

/opt/Talend-6.3.1/runtime/bin/talend-runtime-6.3.1-wrapper /opt/Talend-6.3.1/runtime/etc/talend-runtime-6.3.1-wrapper.conf
wrapper.syslog.ident=talend-runtime-6.3.1 wrapper.pidfile=/opt/Talend-6.3.1/runtime/data/talend-runtime-6.3.1.pid wrapper.daemonize=TRUE wrapper.lockfile=/var/lock/subsys/talend-runtime-6.3.1

The wrapper.conf file contains the path to the JRE.

 

Solution

To resolve this issue, update the following two files:

  1. Update the talend-runtime-6.3.1-service file to point to the new JDK/JRE, as follows:

    • # set the JAVA_HOME to launch the wrapper

    • # JAVA_HOME="/usr/java/jdk1.8.0_151/jre"

    • JAVA_HOME="/usr/java/jdk1.8.0_191-amd64/jre"

  2. Update the ./runtime/etc/talend-runtime-6.3.1-wrapper.conf file, as follows:

    Change the JAVA_HOME set up line from, set.default.JAVA_HOME=/usr/java/jdk1.8.0_151/jre, to set.default.JAVA_HOME=/usr/java/jdk1.8.0_191-amd64/jre.

  3. Restart runtime using systemctl.

Version history
Revision #:
4 of 4
Last update:
‎01-23-2020 04:50 AM
Updated by:
 
Contributors