'Run python script with ExecuteStreamCommand in NiFi (deployed in AWS)

I try to run my simple "hello print" python script in apache NiFi by using ExecuteStreamCommand.

For your information, this apache NiFi is deployed in AWS EC2 Instances.

I have tried to follow this documentation below:

https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.5.0/org.apache.nifi.processors.standard.ExecuteStreamCommand/index.html

but I always get error saying that No such a file directory....

It seems that the flow file can not find the directory in which I put my python script.

For your reference, this is my configuration look likes:

Command Arguments: [my s3 buckets]
Command Path: /usr/bin/python3.8
Argument Delimiter: ;

Since my apache NiFi is deployed in AWS, so I put my python script into my s3 bucket. But the error said that "no such a file directory".

Does anyone know how and where I supposed to save my python script in order for my NiFi can access it in the flow file

Thanks in advance.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source