Jim, Just to confirm Joe's comments, we were using 2.7.0 but then bumped it up to 2.7.1 as there was at least one method os.getpid() that hadn't been implemented [1]. However, 2.7.1 apparently has multithreading issues [2] that are causing some folks headaches as well.
Regards, Matt [1] https://issues.apache.org/jira/browse/NIFI-4301 [2] http://bugs.jython.org/issue2642 On Fri, Apr 13, 2018 at 2:59 PM, Joe Witt <[email protected]> wrote: > Independent of NiFi have you successfully used any version of Jython > to make that call? > > With the NiFi 1.x line that processor has been updated a little bit > and in particular i think we have Jython 2.7.1 (off memory so could be > totally nonsense) where as before we had 2.7.0 or something older... > > Thanks > > On Fri, Apr 13, 2018 at 6:37 PM, James McMahon <[email protected]> wrote: >> Good afternoon. I am running a python script from an ExecuteScript processor >> in NiFi 0.7.1.c. I'm assuming this is actually running in a Jython >> environment under the hood of the processor. >> >> General question: How can I tell what version of Jython i am employing? >> >> Specific problem: I employ an os.statvfs call to check available capacity on >> my disk devices that host my content repo, and that host my data landing >> zone. In my command line environment - not jython - Python has this library >> and so I can successfully make this call. >> >> In NiFi, I get this error at run time: >> >> javax.script.ScriptException: AttributeError: 'module' object has no >> attribute ;statvfs' >> >> How can I correct this? I am happy to replace it if necessary with something >> Jython provides, but don't fully understand the Jython environment within >> NiFi. Is there a suitable Jython equivalent to fix this problem? What >> package or module must i include in my script to get at that? >> >> Thanks in advance for your help. >> >> Jim
