Matt Thanks for Replying , but I am still struggling with ExecuteScript.
[image: Inline image 1] in that ExecuteScript all I have is : Script - set to Python Script Body : from sys import argv filename = "nifi_output/nifi_test.txt" target = open(filename, 'w') target.write("My Name is Bond") target.close() When I run this , Nifi hangs for some reason. Am I doing something grossly wrong ? On Wed, Aug 17, 2016 at 3:57 PM, Matt Burgess <mattyb...@gmail.com> wrote: > If you need an input flowfile, you're probably better off with > ExecuteStreamCommand than ExecuteScript for this use case. > ExecuteStreamCommand is much like ExecuteProcess but it accepts input flow > files. > > Regards, > Matt > > > On Aug 17, 2016, at 6:49 PM, koustav choudhuri <koustav1...@gmail.com> > wrote: > > > > HI All > > > > I am trying to execute 2 different shell scripts ( calling a sqoop job > and calling a hive script) in a sequence. Can I achieve this through NIFI ? > > > > I tried to do it through ExecuteProcess Processor but the issue is > Execute Processor does not accept an input. > > > > Then I moved to ExecuteScript : > > Created 2 different python scripts, 1 calling the Sqoop job and the > other calling the Hive script and arranged them in 2 different > ExecuteScript Processors but looks like it doesnt work. > > > > Can you guys tell me if this is achievable in NIFI? Can I call > Sqoop/HIVE/ SPARK jobs residing on other servers in a sequence or flow with > NIFI? > > > > > > Thanks > > Koustav >