How to import CSV to KNIME in command line

533 Views Asked by At

I want to import a CSV file to KNIME in command line. When I run a command line like this:

"C:\Program Files\KNIME\knime.exe" c:\temp\foo.csv

Import a CSV

A dialog pops up, but the button is grayed, I can't click finish. I'm new to KNIME, just installed it, does KNIME support importing CSV directly? Thanks.

1

There are 1 best solutions below

2
On

That is not how you can import CSV files. That way you can open KNIME workflows. If you want to override a KNIME workflow's input data and (batch) execute the KNIME workflow, you should use flow variables as input and specify them in the command line: https://www.knime.com/faq#q12

-workflow.variable=my_csv_location,C:/tmp/foo.csv,String

Or something similar.

If you just want to import a CSV file to an existing workflow, just drag it on the editor area and it will add a CSV Reader node with the path set.