To understand jython/python relationship [1] To understand example usage of the processor a bit more [2, 3, 4].
[1] http://www.jython.org/archive/21/docs/whatis.html [2] https://community.hortonworks.com/articles/75032/executescript-cookbook-part-1.html [3] http://www.nifi.rocks/using-the-executescript-processor/ [4] http://funnifi.blogspot.com/2016/02/executescript-processor-hello-world.html Thanks Joe On Wed, Jul 5, 2017 at 5:59 PM, James McMahon <[email protected]> wrote: > Hello. I have a script I run at the command line via > jython /a/b/c/parseIncoming.py > > At the moment, all it does is print a message to the shell. > > I expected to be able to execute this script from an ExecuteScript > processor. May not do anything right now, but I still anticipated that the > flowfiles would process through. > > I have two questions: > * I was unable to find jython in the ES script engine configuration. I opted > for python. Why is jython not there, and is python okay instead? > > * I have my CLASSPATH set as... > > CLASSPATH=:/mnt/datalocal/opt/lib:/home/nifi/nifi/lib:/mnt/datalocal/opt/lib:/home/nifi/nifi/lib:/mnt/datalocal/opt/lib:/home/nifi/nifi/lib:/mnt/datalocal/opt/lib:/home/nifi/nifi/lib:/mnt/datalocal/opt/lib:/home/nifi/nifi/lib:/mnt/datalocal/opt/lib:/home/nifi/nifi/lib:/mnt/datalocal/opt/lib:/home/nifi/nifi/lib:/mnt/datalocal/opt/lib:/home/nifi/nifi/lib:/mnt/datalocal/opt/lib:/home/nifi/nifi/lib:/mnt/datalocal/opt/lib:/home/nifi/nifi/lib:/mnt/datalocal/opt/lib:/home/nifi/nifi/lib:/mnt/datalocal/opt/lib:/home/nifi/nifi/lib:/mnt/datalocal/opt/lib:/home/nifi/nifi/lib:/mnt/datalocal/opt/lib/commons-io-2.5:/mnt/datalocal/opt/lib:/home/nifi/nifi/lib:/mnt/datalocal/opt/lib/commons-io-2.5:/mnt/datalocal/opt/lib:/home/nifi/nifi/lib/nifi-api-1.3.0.jar:/mnt/datalocal/opt/lib/commons-io-2.5/commons-io-2.5.jar > > ...for user nifi, must I still put something in Module Directory? > > * the flowfile does not flow through to failure or to success. And there is > no insight logged to nifi-app.log. What might be going on? > > How can I get this to execute script? I am running Apache NiFi 1.3. Thank > you in advance for any insights. -Jim
