Skip to main content
m_adeel
Gold ⭐️
November 29, 2021
Solved

ExecuteScript in nifi

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?

m_adeel
m_adeelAnswer
Gold ⭐️
December 3, 2021

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

1 reply

m_adeel
m_adeelAuthorAnswer
Gold ⭐️
December 3, 2021

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

Translate