I would need my stream to be updated every 15 minutes, is there any loop node? Where can we select the period that should start each update?
- Knime Server has an execution timer.
- Create batch file and run from Task Scheduler.
Is there any way to run KNIME in batch mode, i.e. only on command line and without the graphical user interface?
There is a command line option allowing the user to run KNIME in batch mode. To see a list of possible arguments execute the following line on a command prompt (for Linux):
1 knime -nosplash -application org.knime.product.KNIME_BATCH_APPLICATION​
On Mac the executable is not directly located in the KNIME application directory but in a sub folder of the application bundle:
1 knime.app
/Contents/MacOS/knime
-nosplash -application org.knime.product.KNIME_BATCH_APPLICATION
On a Windows system, you need to add two more options to enable system messages (by default any message to System.out is suppressed):
1 knime.exe -consoleLog -noexit -nosplash -application org.knime.product.KNIME_BATCH_APPLICATION
The option:
-consoleLog
Causes a new window to be opened containing the log messages and will keep the window open after the execution has finished. You will need to close the window manually and an error message is produced from the Java process which you can safely ignore. (If you happen to find out how this procedure can be avoided or simplified, please let us know.)
–launcher.suppressErrors
If this is specified, then the launcher will not display a message box with errors if a problem was encountered. This allows the launcher to be used in unattended tests or builds without blocking on an error.
-nosave
If this is specified, the workflow is not saved after execution has finished.
-preferences=file.epf
Path to the file containing eclipse/knime preferences.
-reset
Reset workflow prior to execution.
If you pass no options, all available options will be listed.
In order to run a workflow, named “Knime_project” contained in the workspace directory, execute in one line:
1 knime -nosplash -application org.knime.product.KNIME_BATCH_APPLICATION -workflowDir=
"workspace/Knime_project"
In order to run a workflow, name “Knime_project.zip” exported as an .zip file, execute in one line:
1 knime -nosplash -application org.knime.product.KNIME_BATCH_APPLICATION -workflowFile=
"PATH_TO_FILE/Knime_project.zip"
It’s also possible to change the configuration of the workflow through workflow variables. If a variable is defined for a workflow, you can use it in batch mode by referring to it using a comma separated triplet to specify the name, value and type like this:
-workflow.variable=my_integer,5,int
3. Try Nodepit Ruuner. I have no experience with this method.
@Gabriel2020 you might want to take a look at this debate and the examples:
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.