Hello Chamil,

Certainly, the MergeContent processor can be used to do this. The only 'gotcha' 
might be
knowing what to put for the min/max bin sizes. You can certainly use a Merge 
Format of ZIP, though.

One option may be to update ListFile to add attributes, so that each time that 
it lists a set of files,
it could indicate the number of files listed and add an 'index' attribute for 
each of them. Then, you
could use ListFile -> FetchFile -> MergeContent and set MergeContent's Merge 
Strategy to
'Defragment'. That would cause MergeContent to look at the attributes to know 
how many FlowFiles
would go to each bin. Unfortunately, that would require a slight code change to 
ListFile, though.

-Mark



> On Jun 23, 2016, at 3:43 PM, Chamil Jeewantha <[email protected]> wrote:
> 
> Hello Guru's,
> 
> I have set of files in a directory. I wants read all the content of that
> given folder and create a zip file by Nifi.
> 
> 
>   - Will MergeContent processor works for this?
>   - As I know, there is no such process that I can use for this case. Do
>   we have one?
>   - Are there any alternatives (work arounds)?
> 
> Best Regards,
> Chamil
> 
> -- 
> http://kavimalla.blgospot.com
> http://kdchamil.blogspot.com

Reply via email to