Jim,

The Jython script engine returns its name as "python" for some reason, so 
that's what's displayed as the option, but it is definitely Jython not Python. 
If you want to run your script as-is and use stdout for the results, you can 
use ExecuteStreamCommand for that, otherwise Joe's references will show you how 
to interact with the NiFi API to read/write flow files, etc.

Regards,
Matt

> On Jul 5, 2017, at 5:59 PM, James McMahon <jsmcmah...@gmail.com> 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

Reply via email to