nifi-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Burgess <mattyb...@gmail.com>
Subject Re: Nifi for java Program
Date Tue, 04 Oct 2016 13:31:44 GMT
Selvam,

Are you looking to run an external java program (like running "java
-jar MyCode.jar" from the command-line)? If so, you can use the
ExecuteProcess [1] or ExecuteStreamCommand [2] processor(s).

If you are looking to call code from a JAR directly, you could use the
ExecuteScript processor [3] with Groovy or Javascript (or Jython,
JRuby, Lua but the first two seem to have a cleaner, more Java-like
interface for working with Java objects), I have several examples on
my blog [4], including one to call methods from Hazelcast client JARs
[5].

Regards,
Matt

[1] https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.ExecuteProcess/index.html
[2] https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.ExecuteStreamCommand/index.html
[3] https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.script.ExecuteScript/index.html
[4] http://funnifi.blogspot.com/
[5] http://funnifi.blogspot.com/2016/02/executescript-using-modules.html

2016-10-04 9:14 GMT-04:00 Selvam Raman <selmna@gmail.com>:
> Hi,
>
> is there any processor in NIFI to run java program.
>
> --
> Selvam Raman
> "லஞ்சம் தவிர்த்து நெஞ்சம் நிமிர்த்து"

Mime
View raw message