Hi Luis! You may want to explore building your own Python nifi processor, it lets you work with flowfiles directly. Joe Witt created a good guide for it:
https://devcenter.datavolo.io/tutorials/build-python-transform/#0 Also as Stephen said JOLT is really handy and fast if you can go that way. If you're using python libraries though a custom processor might be the way to go. I'm very happy with it so far. ________________________________ From: Otto Fowler <[email protected]> Sent: Wednesday, October 9, 2024 10:45 PM To: Luis Carmona <[email protected]>; [email protected] <[email protected]> Subject: Re: Processor for Python Script (not a python processor) https://nifi.apache.org/documentation/v2/ ExecuteStreamProcessor? On October 8, 2024 at 10:27:39 PM, Luis Carmona ([email protected]) wrote: External ([email protected]<mailto:[email protected]>) Report This Email<https://protection.inkyphishfence.com/report?id=c2tvdXQtY2xldmVyLWRldmljZXMvZGdhbGxhZ2hlckBjbGV2ZXJkZXZpY2VzLmNvbS85Yzk3YjU5MzY0YzQ5OGIyNGMwMjBiNjgzNmM5OTI5NC8xNzI4NTI4NDE1Ljk3#key=de966fbb7f939a4c460e27716dd5e64f> FAQ<https://getskout.com/emailprotectionfaq/> Skout Email Protection<https://getskout.com/emailprotection/> https://nifi.apache.org/documentation/v2/<https://shared.outlook.inky.com/link?domain=nifi.apache.org&t=h.eJwtzU0OgyAYRdGtGMYVKqKCI7cCHxSJKIYfO2i695a045P37guV6NHcoDXnM82EHO7hsDwlrAaHaIkOUHZzZJldOMhFCbo1aKuLtIWSW_DmMrHV5nJgEtFWei_tauLykz9gCDsRICY1iH5kwARXlMGd3tXI-xGEoIKRbqJ8oJx1AxZTDZkaCjkHJWF7yqjTYnfpfL2rrr9-FO_fHwq4P-k.MEUCICD-wdN5V3IfzaDx5I4Bn22oiNBAScN567B0F4koEL-DAiEAnjgMKcFGqbrGyULCF0Oc8_TmN0bxPbGxvEPNK1cwrw0> ExecuteStreamProcessor? On October 8, 2024 at 10:27:39 PM, Luis Carmona ([email protected]<mailto:[email protected]>) wrote: Hi folks, I need to run a python script or javascript to perform a very simple json data transformation - Already checked ScriptedTransformRecord, but it has options for Groovy & Clojure only. Tried the javascript syntax in Clojure but didn't work and couldn't find the right way to right the Clojure script. - Checked ExecuteScript as well but is says Experimental and documentation says "No script engines found" for script engine so couldn't figure out how to use either. Which would be the best way to run a short piece of python code ? I am trying with NIFI 2.0 M4. Any tip, sample or tutorial would be great, thanks in advance. Luis
