Reputation: 1300
I am running NiFi in a container. How do I best install python modules within this container? I need to install pandas. I logged in to the container and installed pandas using pip. But weird thing is, this installed only pandas and numpy. And it has not installed any other dependencies!
I get error when I run ExecuteScript processor, which complains about missing dependencies.
Why is it behaving so differently!
Upvotes: 0
Views: 1723
Reputation: 14194
ExecuteScript uses Jython and does not support Python native dependencies (of which pandas
is one). If you want to use native libraries, use ExecuteStreamCommand
to invoke the python
runtime via the command line, external of the NiFi JVM. See this answer for more details.
Upvotes: 1