Support Questions

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

ExecuteScript in nifi

avatar
Explorer

I am trying to get the data from elasticsearch from processor group via port. I want to apply some python code on the output data. How can I read the input and execute the code?

1 ACCEPTED SOLUTION

avatar
Explorer

Solution is to use ExecuteStreamCommand option. The reason is ExecuteScript in nifi is not pure python instead it's jython. So, to execute a python code, we only need to set the python path and the file path. The configuration for this can be seen from the image attached below.Image.png

View solution in original post

1 REPLY 1

avatar
Explorer

Solution is to use ExecuteStreamCommand option. The reason is ExecuteScript in nifi is not pure python instead it's jython. So, to execute a python code, we only need to set the python path and the file path. The configuration for this can be seen from the image attached below.Image.png