Support Questions

Find answers, ask questions, and share your expertise

Order of files MergeContent processor

avatar
Explorer

Hello, I am new to nifi
Suppose that I have multiple file to be merged, named by 0001_0, 0002_0, 0003_0 and so on
and the number of files to be merged is determined by original file which is not the thing we can control
my question is that how to use MergeContent processor to do merge
Thanks

10 REPLIES 10

avatar
Explorer
@Shu

I have implemented your template

but the merged result is not in the order what I need
in the simulation setting, I have five files, which is
00000_0 contains 'aaa'

00001_0 contains 'bbb'

00002_0 contains 'ccc'

00003_0 contains 'eee'

00004_0 contains 'hhhh'

I want the output to be: aaa; bbb; ccc; eee; hhhh

but the actual output is : eee; bbb; hhhh; ccc; aaa

It seems that list/fetch processor can't detect the order like get processor?

result.jpg