The JobServer application provided by Talend allows you to choose another JVM than the one used by default to launch your Jobs.
To change the Job launcher path, proceed as follows:
Go to the directory <root>/conf/, where <root> is the JobServer path, and open the TalendJobServer.properties file to edit it.
In the line dedicated to the Job launcher path, add the path to your java executable after the equal sign.
# Set the executable path of the binary which will run the job, for example: /usr/bin/java/java or "c:\\Program Files\\Java\\bin\\java.exe" org.talend.remote.jobserver.commons.config.JobServerConfiguration.JOB_LAUNCHER_PATH=C:\Program Files\Java\jdk1.8.0_65\bin\java.exe
Note
The use of quotes is only necessary when your path contains spaces, as shown in the capture. Otherwise, type in the path without quotes.
Save your changes and close the file.
The next time you launch JobServer, the java executable used will be the one you have previously set in the TalendJobServer.properties file.
You are also able to choose another Keystore if needed.
To override the existing Keystore file, you have to:
generate a new Keystore with the utility tool called Keytool (Key and Certificate Management Tool);
set the new Keystore location;
enable the SSL Keystore at server side.
To generate a Keystore
Open a command prompt and change directory to <root>/keystores where <root> is the JobServer path.
Type in the following:
keytool -genkey -keystore <myKeystoreName> -keyalg RSA
where
<myKeystoreName>
refers to the name of the Keystore you are creating.Enter the password for your Keystore twice, then enter the other optional information, such as your name, the name of your organization, your state etc., if needed.
Type in
yes
to confirm your information.Type in the password you have previously defined. The new Keystore file has been created in <root>/keystores.
To set the location of the new Keystore
To set the new Keystore location, you can either edit the JAVA_OPTS environment variable or edit the launching script (start_rs.bat) of the Jobserver.
To edit the JAVA_OPTS environment variable, add:
-Djavax.net.ssl.keyStore=/<myDirectory>/<myKeystore>
-Djavax.net.ssl.keyStorePassword=<myPassword>
to your JAVA_OPTS environment variable, where
<myDirectory>
is the installation directory of your Keystore,<myKeystore>
is the name of your Keystore and<myPassword>
is the password you have previously defined for your Keystore.Note
If you have not created the JAVA_OPTS environment variable yet, you have to create it before completing this procedure.
OR
To edit the launching script, open the start_rs.bat file (or start_rs.sh on Linux) to edit it.
As shown in the capture, add
-Djavax.net.ssl.keyStore=/<myDirectory>/<myKeystore>
-Djavax.net.ssl.keyStorePassword=<myPassword>
to the JVM arguments location, where
<myDirectory>
is the installation directory of your Keystore,<myKeystore>
is the name of your Keystore and<myPassword>
is the password you have previously defined for your Keystore.