Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

How to validate the number of flow files in and the number of flow files out.

How to validate the number of flow files in and the number of flow files out.

New Contributor

Hi Team,

 

I am a newbie in apache Nifi,

 

I am trying to solve one problem, 

The number of flow files IN = The number of flow files OUT.

 

Overall I am trying to do a flow file count validation.

Right Now I am trying with putDistributedCache and getDistributedCache. but not getting any idea.

 

Any sample or any example can help me a lot.

 

Thanks

1 REPLY 1
Highlighted

Re: How to validate the number of flow files in and the number of flow files out.

Master Guru

@kumar993498 

I think we need a bot more detail on your use case here.

Where are you taking your measurements within your dataflow

Within a single NiFi dataflow, the number of FlowFile In ( assuming you mean number of FlowFiles created on ingest from some source?) will almost never match number of FlowFile out (Assuming you mean number of FlowFile written to some target?).  This is because a single FlowFile may be split in to multiple FlowFiles, multiple FlowFiles combined in to a single FlowFile, you may clone FlowFiles, you may send same FlowFile to multiple targets, etc...

Matt

Don't have an account?
Coming from Hortonworks? Activate your account here