Reputation: 85
I try to use ExecuteStreamCommand processor in Apache Nifi in order to execute a simple Python Script.
Here is the python script:
import pandas as pd
import sys
file = pd.read_json(sys.stdin)
file.to_json(sys.stdout)
Here is the processor configuration:
I don't know where I am wrong.
Upvotes: 1
Views: 572
Reputation: 589
Here’s what you can do: Add the full path to the Python command in the Command Argument space, and provide the full path to the script under command arguments. This will work.
Upvotes: 1