Support Questions

Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

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

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

Explorer

You may follow this video for the complete instruction.

 

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

 

 

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.