To do this, you need to do UpdateAttribute (to set the temp folder
location) -> PutFile -> ExecuteStreamCommand to ensure the flowfile's
contents are staged where 7za can find them.

I think the appropriate parameter would be something like this:

Command Arguments: e;${path}/${filename}

Assuming ";" is the argument delimiter.

On Wed, Sep 21, 2022 at 10:45 AM James McMahon <[email protected]> wrote:
>
> Hello. I have a program /bin/7za that I need to apply to flowfiles  that were 
> created by 7za. One of them is testArchive.7z.
>
> I try to employ an ExecuteStreamCommand to extract from an incoming flowfile 
> to into N output flowfiles in output stream, each representing one file from 
> the contents in the flowfile.
>
> ESC throws error=2, No such file or directory.
>
> java.io.Exception: Cannot run program "/bin/7za"": error=2, No such file or 
> directory
>
> My ExecuteStreamCommand processor has this configuration:
> Command Arguments    e
> Command Path   /bin/7za
> Ignore STDIN   false
> working Directory   no value set
> Argument Delimiter   ;
> (I do not set an Output Destination Delimiter, intending to send the output 
> to output path "output stream" as separate flowfiles)
>
> How can I fix this problem?
>
> Thanks in advance,
> Jim

Reply via email to