Created 07-11-2018 12:16 PM
Hi i would like to make dynamic predictions using H20 with NIFI, i would like to execute my phyton script in a processor.
Anybody knows if its possible???
How can i install H20 in NIFI??
Thank u very much
Created 07-11-2018 12:27 PM
@Pilar Badiola you can use the ExecuteScript processor to execute your python code. Here an example template:
https://gist.github.com/ijokarumawak/1df6d34cd1b2861eb6b7432ee7245ccd
HTH
*** If you found this answer addressed your question, please take a moment to login and click the "accept" link on the answer.
Created 07-11-2018 12:36 PM
@Pilar Badiola I believe that is possible using execute script processor. Since H20 is a python library, as long as that library is correctly install at the OS level python on all the nifi nodes you should be able to use it from your script.
Created 07-11-2018 01:23 PM
ExecuteScript uses the Jython script engine, which does not support native (CPython) modules, I would assume that H2O probably uses native modules somewhere. If not then ExecuteScript should work, if it does use native modules then you could try ExecuteStreamCommand to call out to the Python interpreter to run the script.
Created 07-11-2018 12:35 PM
Thank u! i already have the script.. but the point is.. can i use h20 embebbed with nifi? @Felix Albani