Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

NIFI + H2O

Highlighted

NIFI + H2O

New Contributor

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

4 REPLIES 4

Re: NIFI + H2O

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

Re: NIFI + H2O

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

Re: NIFI + H2O

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.

Re: NIFI + H2O

New Contributor

Thank u! i already have the script.. but the point is.. can i use h20 embebbed with nifi? @Felix Albani