Created 04-16-2024 11:05 PM
We have some execute script processor that supports ECMA engine in NIFI 1.20 now we are migrating to NIFI 2.0 and since ECMA engine is depreciated how do we convert the script to closure or groovy or any other alternatives methods
Created 04-17-2024 02:09 AM
@SAMjam, Welcome to our community! To help you get the best possible answer, I have tagged in our NiFi experts @SAMSAL @MattWho @TimothySpann who may be able to assist you further.
Please feel free to provide any additional information or details about your query, and we hope that you will find a satisfactory solution to your question.
Regards,
Vidya Sargur,Created 04-17-2024 07:13 AM
You can write Python processors. There is no autoconverter and never will be.
You can export JavaScript files and run via JDK Nashorn directly like
jjs testllm.js
You can run as NodeJS and call via REST
Created 04-17-2024 07:16 AM
Nashorn is removed from JDK 15, NiFi 2 uses JDK 21
Keep an old JDK 8 to run