nifi-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Payne <>
Subject Re: merge flowfiles while adding up the line count
Date Wed, 13 Dec 2017 20:48:42 GMT

If the intent is to split the data up just so that you can route each line
differently, and then re-assemble the data, I would recommend that
you look into RouteText. This will likely give you the capability you need
but does so without having to split the data up and re-merge it, so your
dataflow is simpler and probably quite a bit more efficient.


On Dec 13, 2017, at 3:41 PM, Joe Witt <<>>

id recommend you look into MergeRecord for this.

On Dec 13, 2017 3:35 PM, "tzhu" <<>>

I want to use MergeContent to combine single-lined flowfiles resulted from a
text file getting split and routed, and record the number of lines. I have a
few text files. First, the text gets split into single lines by SplitText,
and then the flowfiles are routed by RouteOnContent. I'm stuck on the part
to merge the lines back into one file by filename and route property, and
sum up merge.count to get the number of lines in the file. What should I do?
Any help is appreciated.


Sent from:

View raw message