Set KNIME temp directory in a headless environment?


It’s easy to change the location of temporary files within the KNIME client using the preferences dialog.
However, in an environment where you don’t have a GUI (a Linux command line, for example), how can you change this location?
[Tried editing knime-workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.resources.prefs, and adding knime.tempDir=/… but KNIME continues to use the default directory.

How can I change this setting via command line or editing a file?


Hi @ChemMitch,

there is the option -preferences=file.epf for using a preferences file.

Best regards

Thank you, Andrew.
Created a file ‘knime.epf’ which consists of a single line

and added

to the command used to run the workflow.
The temporary files are still written to the default temp dir, /tmp, instead of the directory specified in the file.
Can you see if I’m missing something that will signal to KNIME to use the specified temporary directory?

Hi @ChemMitch,

I don’t know if it is possible to limit the preferences file to this entry.
And if I export the preferences the entry for this var is /instance/org.knime.workbench.core/knime.tempDir. Maybe that’s why?

Best Regards

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.