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 ExecuteScript - 3rd party packages work in Jython 2.7.0 but not in NiFi 1.7.1

Highlighted

NiFi ExecuteScript - 3rd party packages work in Jython 2.7.0 but not in NiFi 1.7.1

New Contributor

I confirmed `redis` and `pymongo` work with a separate instance of Jython 2.7.0 (not the NiFi Jython), but both packages result in `AttributeError: 'module' object has not attribute 'getpid'`. I thought if a package works with Jython, then it will work with NiFi ExecuteScript? Also, how/where do I find NiFi's Jython, so maybe I can try directly with NiFi's Jython? Import works, instantiation fails. True for both redis and pymongo.


from pymongo import MongoClient
client = MongoClient('localhost', 27017)