Hi everyone
I’m trying to run a simple workflow using Knime in batch mode. The input is an XML and the output a JSON file. I want to set the input and output file using -workflow.variable, so what I did is first set the input and output variables at the “Workflow variable administration”:
And then replace the flow variable for this “input_xml_file”:
In this way I expected to run this workflow in batch mode (Linux) using the following command:
knime --launcher.suppressErrors -nosplash -application org.knime.product.KNIME_BATCH_APPLICATION -reset -nosave -workflowFile="/users/pr/rolivella/mydata/knwf/XML_Reader.knwf" -workflow.variable=input_xml_file,/users/pr/rolivella/mydata/xml/books.xml,String -workflow.variable=output_json_file,/users/pr/rolivella/json/authors.json,String
Where I’m overriding the values of input_xml_file and output_json_file. But I get:
WARN main Node Input file ‘/users/pr/rolivella/mydata/xml/default.xml’ does not exist
WARN main Node Output directory ‘/nfs/users/pr/backuppr/C:\Users\rolivella\Desktop’ does not exist
WARN main Node Output directory ‘/nfs/users/pr/backuppr/C:\Users\rolivella\Desktop’ does not exist
WARN KNIME-Worker-0 Node Output directory ‘/nfs/users/pr/backuppr/C:\Users\rolivella\Desktop’ does not exist
What can I do?
Many thanks!
Roger
PS. The workflow:
XML_Reader.knwf (10.1 KB)