Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Please see the Cloudera blog for information on the Cloudera Response to CVE-2021-4428

NIFI how to process single file through MegeContent

Explorer

Hi Team,

 

I've a MergeContent processor  to process the two files (file1, file2) which are coming from two FlowFiles. But here the File2 comes sometimes not regularly , whereas File1 comes on daily basis.so this process two Files successfully. But How we can process the File1 whenever File2 is not present? is it possible through MergeContent Processor or is there any different approach (routing FileFlow) we need to use?

2 FlowFiles Routing2 FlowFiles Routingmerging two FlowFilesmerging two FlowFiles

 

 

 

I've tried processing File1 alone but the flow got stuck in queue in between UpdateRecord & MergeContent.

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Explorer

This has been Achieved through Merge failure can get the single File and do the required transformation and then to place the file in destination.

View solution in original post

3 REPLIES 3

Explorer

Hi

If one flowfile is processed regularly and the other comes in intermittently do they even need to be merged? it sounds like the flow is so quiet that use of merge is not required? 

 

Explorer

Thanks @Griggsy  for your prompt response on this.

 

Yes the scenario is like this whenever the file2 comes it has go to the merge FileFlow along with File1  and after the transformation file needs to send to Destinaion.

 

if the File2 is not present, the daily file File1 needs to processed to different fileflow where all transformations done transferred to destination

Explorer

This has been Achieved through Merge failure can get the single File and do the required transformation and then to place the file in destination.

View solution in original post