Configuring ExecuteStreamCommand on jar flowfiles
I have a large volume of a wide variety of incoming data files. A subset of these are jar files. Can the ExecuteStreamCommand be configured to run the equivalent of jar -xf ${flowfile} and will that automatically direct each output file to a new flowfile, or does ESC need to be told to direct each output file from jar standard out to the Success path out of ESC? Thank you in advance for any assistance.
Re: Configuring ExecuteStreamCommand on jar flowfiles
Since a jar file is mostly just a standard zip file, can you use a built in processor instead? On Sun, 3 Dec 2023, 15:36 James McMahon, wrote: > I have a large volume of a wide variety of incoming data files. A subset > of these are jar files. Can the ExecuteStreamCommand be configured to run > the equivalent of > > jar -xf ${flowfile} > > and will that automatically direct each output file to a new flowfile, or > does ESC need to be told to direct each output file from jar standard out > to the Success path out of ESC? > > Thank you in advance for any assistance. >
Re: Configuring ExecuteStreamCommand on jar flowfiles
UnpackContent examples seem to require that I output the results of the unpack to a directory outside of the nifi flow. Is it possible to unpack the jar in the flow, keeping the results as new flowfiles in the output stream? On Sun, Dec 3, 2023 at 1:23 PM James Srinivasan wrote: > Since a jar file is mostly just a standard zip file, can you use a built > in processor instead? > > On Sun, 3 Dec 2023, 15:36 James McMahon, wrote: > >> I have a large volume of a wide variety of incoming data files. A subset >> of these are jar files. Can the ExecuteStreamCommand be configured to run >> the equivalent of >> >> jar -xf ${flowfile} >> >> and will that automatically direct each output file to a new flowfile, or >> does ESC need to be told to direct each output file from jar standard out >> to the Success path out of ESC? >> >> Thank you in advance for any assistance. >> >
Re: Configuring ExecuteStreamCommand on jar flowfiles
Jim, UnpackContent does just that. It does not write to an external directory. Thanks Mark Sent from my iPhone On Dec 3, 2023, at 5:18 PM, James McMahon wrote: UnpackContent examples seem to require that I output the results of the unpack to a directory outside of the nifi flow. Is it possible to unpack the jar in the flow, keeping the results as new flowfiles in the output stream? On Sun, Dec 3, 2023 at 1:23 PM James Srinivasan mailto:james.sriniva...@gmail.com>> wrote: Since a jar file is mostly just a standard zip file, can you use a built in processor instead? On Sun, 3 Dec 2023, 15:36 James McMahon, mailto:jsmcmah...@gmail.com>> wrote: I have a large volume of a wide variety of incoming data files. A subset of these are jar files. Can the ExecuteStreamCommand be configured to run the equivalent of jar -xf ${flowfile} and will that automatically direct each output file to a new flowfile, or does ESC need to be told to direct each output file from jar standard out to the Success path out of ESC? Thank you in advance for any assistance.