Support Questions

Find answers, ask questions, and share your expertise

Nifi: Avoid merge 2 flowfiles from the same processor

avatar
New Contributor

 

Screen Shot 2021-01-29 at 18.07.38.png

This is the situation: I want to merge 2 flowfile one from processor1 and the second from processor2, the problem is that processor2 is faster than processor1 so with time processo2 generate 2 flowfile before processor1 and the processor MergeContent merge 2 flowfiles from processor2 

1 REPLY 1

avatar

As you can see the Mergecontent processor has several parameters for ensuring messages with a commonality get merged. https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.6.0/org.apache...

 

This could be used in the way that you let each of the two processors give the messages an attribute, and only merge things with the same attribute.

 

You appear to be looking for the opposite. I am not aware of any such parameter, and am also not sure if this is in the spirit of what mergecontent was designed for. Perhaps it is time to step back and see if mergecontent (or even NiFi) is the best tool for this specific job.


- Dennis Jaheruddin

If this answer helped, please mark it as 'solved' and/or if it is valuable for future readers please apply 'kudos'.