Changing the Link temporary directory

To change the HCL Link temporary directory, complete the following steps:

  1. Create a new directory and grant all permissions to the user, group, and other. Run the following command:
     
    mkdir /opt/hiptmp
    chmod 777 /opt/hiptmp
    
  2. Add a new line to tomcat-context/install/restapi/tomcat/setenv.sh to specify the new directory. For example:
    export JAVA_OPTS="$JAVA_OPTS -Djava.io.tmpdir=/opt/hiptmp"
  3. Modify the existing lines in config.yaml for the long and short workers as shown here:
    
    longTaskProcessJvmOptions="-Xmx2g -Djava.io.tmpdir=/opt/hiptmp"
    shortTaskProcessJvmOptions="-Djava.io.tmpdir=/opt/hiptmp"
  4. Configure link runtime to use the same directory for JVM options. Go to "JVM Options" under "runtime" section of config.yaml and add a new option for JVM:
    option4: "-Djava.io.tmpdir=/opt/hiptmp"
    Note: If the connectors do not use the access token expiry action to re-generate the access token after its expiry, then step 4 can be ignored
  5. Restart the Link.