Skip to main content
SAMjam
Bronze ⭐️⭐️⭐️
Apr 17, 2024 6:05 AM UTC
Question

Apache NIFI 2.0 Execute script: Script failing as ECMA engine is depreciated how to resolve what's the alternative

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

3 replies

VidyaSargur
Community Manager
Community Manager
Apr 17, 2024 9:09 AM UTC

@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.

Translate
Regards, Vidya Sargur Madabhushi| Senior Community Manager | Was your question answered? Make sure to mark the answer as the Best Answer. If you find a reply useful, say thanks by clicking on the thumbs up button.
TimothySpann
Platinum ⭐️⭐️⭐️
Platinum ⭐️⭐️⭐️
Apr 17, 2024 2:13 PM UTC

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

 

 

Translate
TimothySpann
Platinum ⭐️⭐️⭐️
Platinum ⭐️⭐️⭐️
Apr 17, 2024 2:16 PM UTC

https://community.cloudera.com/t5/Support-Questions/ExecuteScript-error-ECMAScript-is-missing/m-p/346336

Nashorn is removed from JDK 15, NiFi 2 uses JDK 21

Keep an old JDK 8 to run

 

Translate