Support Questions
Find answers, ask questions, and share your expertise

ExecuteScript is not working properly in nfii 1.14.0

New Contributor

Hi,

Can you please help me with this issue? 

 I was using nifi 1.10.0, ExecuteScript with python code... I was using the following imports with some python modules by adding Module Directory i.e. my python packages location. This was working fine in nifi 1.10.0 but not working in nifi 1.14.0. It's saying that the Jython engine is unable to initialize. 

from org.apache.nifi.processor.io import OutputStreamCallback
from org.apache.nifi.processor.io import InputStreamCallback
from org.python.core.util import StringUtil
from org.apache.commons.io import IOUtils
from java.nio.charset import StandardCharsets
from org.apache.nifi.processor.io import StreamCallback

import requests
from tzlocal import get_localzone
import pytz
My Questions---
1. Is ExecuteScript will not work using both Jython and Python modules in nifi 1.14.0?  
2. What is the alternate solution? 
3. I need both attribute and flow file content in python script. please suggest to me the best processor in nifi 1.14.0 for my requirement.  
0 REPLIES 0