How to Set and Redirect Temp Folder from Default OS Folder to Another One

Reported for version 10

How can I set or redirect the temp folder from the default OS folder to another one?

As there are multiple ways to change the temp folder from the default OS one, the solution depends on your use case. See a brief description of possible solutions below:

  1. If using the runtime.properties file located in [DQC]\runtime, change the setup by uncommenting:

    fileSystem.workFolders=path/to/new/temp/folder
  2. When running a plan or a component or starting the server via the command line, add the following argument into the JAVA_OPTS environment variable in the onlinectl.bat|sh file located in [DQC]\runtime\bin.

    -Djava.io.tmpdir=path/to/new/temp/folder
  3. When running a plan or a component or starting the server from the IDE, add into VM arguments which can be found under Run Configurations... and Runtimes tab of your plan after clicking the drop-down arrow next to the Run item. 

     

    -Djava.io.tmpdir=path/to/new/temp/folde
  4. Another possibility is to set the tempFolder in the tempFolders node in the default.serverConfig file located in [DQC]\runtime\server\etc:

    <tempFolders>
           <tempFolder path="path/to/new/temp/folder" />
    </tempFolders>