Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

How to run a python script with dependencies in a virtual environment in Nifi?

avatar
New Contributor

Hello everyone,

 

Is there a way in Nifi to run a python script which has modules imported from a different folder, requirements specified in a pipfile and has arguments to pass?

 

In short, how to execute a python script which usually runs in my virtual environment using Nifi?

 

The end goal for me is to pick up a file using Get File and post it to API. I tried execute process, execute streamcommand processors.

 

Thanks.

1 REPLY 1

avatar
Explorer

You may follow this video for the complete instruction.

 

https://www.youtube.com/watch?v=rUJOS6LT5Jk