Bala, Jython in ExecuteScript is noticably slower than other languages like Javascript and Groovy, but it shouldn't be that slow. Can you share your script code? Also, is this just to investigate before writing a more complex script in ExecuteScript, or do you just want to add an attribute to a flowfile? If the latter, UpdateAttribute can do that, but I suspect there is more to it than that (custom logic, e.g.).
Regards, Matt On Thu, Oct 27, 2016 at 8:08 AM, Joe Witt <[email protected]> wrote: > Bala, > > Are you saying that step 2 (executing the script) is taking three > seconds? Is that per message? Can you show the log or screenshot of > how you're tracking that? > > Thanks > Joe > > On Thu, Oct 27, 2016 at 6:02 AM, balacode63 <[email protected]> > wrote: >> Dear All, >> >> I've added a ExecuteScript in python. This script is a simple script which >> will just add one attribute to the flowfile. The flow is definded as below, >> >> 1. Listen from mqtt (ConsumeMQTT) >> 2. Add attribute to nifi flow (Execute script) >> 3. Write to a file/post/ or some custom logic >> >> But its taking 3 seconds to process. Please guide me. >> >> Thanks, >> Bala >> >> >> >> -- >> View this message in context: >> http://apache-nifi-developer-list.39713.n7.nabble.com/Nifi-ExecuteScript-slow-performance-tp13735.html >> Sent from the Apache NiFi Developer List mailing list archive at Nabble.com.
