Skip to main content
Reshma
Silver ⭐️
September 2, 2020
Solved

Different files with different columns to be loaded in single Nifi flow

I have different input files for different sources. Can I create a common Nifi flow which processes all the different kind of files? Each files will be having different types of columns and different types of output table to be loaded. For example, File 1 will be having column A, Column B to be loaded to Table AB, File 2 will be having column C, Column D, Column E to be loaded to Table CDE. Can I achieve this in a single flow or should I create different flows for different types of files?

SagarKanani
Gold ⭐️
September 4, 2020

Hi....you can create a single flow as long as you can distinguish the files for e.g using the filename. You can route on attribute and load it different table.

Hope this helps. If the comment helps you to find a solution or move forward, please accept it as a solution for other community members

2 replies

SagarKanani
Gold ⭐️
September 4, 2020

Hi....you can create a single flow as long as you can distinguish the files for e.g using the filename. You can route on attribute and load it different table.

Hope this helps. If the comment helps you to find a solution or move forward, please accept it as a solution for other community members

Translate
Reshma
ReshmaAuthor
Silver ⭐️
September 11, 2020

@SagarKanani Thanks for your reply.

Translate