<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Can NiFi forward a merged content based on the number of flowfiles merged over a specified time? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Can-NiFi-forward-a-merged-content-based-on-the-number-of/m-p/140195#M102818</link>
    <description>&lt;P&gt;Have you tried using &lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.MergeContent/" rel="nofollow noopener noreferrer" target="_blank"&gt;MergeContent&lt;/A&gt; processor?&lt;/P&gt;&lt;P&gt;The whole configuration depends on how your flow file looks like, but this might be a good starting point.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="13268-capture.jpg" style="width: 783px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/21786iE0F672818364CD2C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="13268-capture.jpg" alt="13268-capture.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Aug 2019 08:22:39 GMT</pubDate>
    <dc:creator>michal_rudko</dc:creator>
    <dc:date>2019-08-19T08:22:39Z</dc:date>
    <item>
      <title>Can NiFi forward a merged content based on the number of flowfiles merged over a specified time?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-NiFi-forward-a-merged-content-based-on-the-number-of/m-p/140194#M102817</link>
      <description>&lt;P&gt;Hi, i am trying to create a flow that forwards merged content only if  there are 50 flowfiles in it over 1 minute. If there are less than 50, i want to drop the content. Is this possible without a custom processor?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2017 17:42:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-NiFi-forward-a-merged-content-based-on-the-number-of/m-p/140194#M102817</guid>
      <dc:creator>awhite4844</dc:creator>
      <dc:date>2017-03-06T17:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can NiFi forward a merged content based on the number of flowfiles merged over a specified time?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-NiFi-forward-a-merged-content-based-on-the-number-of/m-p/140195#M102818</link>
      <description>&lt;P&gt;Have you tried using &lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.MergeContent/" rel="nofollow noopener noreferrer" target="_blank"&gt;MergeContent&lt;/A&gt; processor?&lt;/P&gt;&lt;P&gt;The whole configuration depends on how your flow file looks like, but this might be a good starting point.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="13268-capture.jpg" style="width: 783px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/21786iE0F672818364CD2C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="13268-capture.jpg" alt="13268-capture.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 08:22:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-NiFi-forward-a-merged-content-based-on-the-number-of/m-p/140195#M102818</guid>
      <dc:creator>michal_rudko</dc:creator>
      <dc:date>2019-08-19T08:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: Can NiFi forward a merged content based on the number of flowfiles merged over a specified time?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-NiFi-forward-a-merged-content-based-on-the-number-of/m-p/140196#M102819</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/15525/michalrudko.html" nodeid="15525"&gt;@Michal R&lt;/A&gt;,  sorry i should have been more clear, I use the MergeContent processor to merge the files. I want to know if there is a way to only forward the merged content if there are 50 files in it over a certain time. So if 50 files are merged with 1 minute then forward them, if not, drop them. I need to edit my question, sorry again.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2017 20:21:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-NiFi-forward-a-merged-content-based-on-the-number-of/m-p/140196#M102819</guid>
      <dc:creator>awhite4844</dc:creator>
      <dc:date>2017-03-06T20:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Can NiFi forward a merged content based on the number of flowfiles merged over a specified time?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-NiFi-forward-a-merged-content-based-on-the-number-of/m-p/140197#M102820</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/16165/awhite4844.html"&gt;adrian white&lt;/A&gt; Try to play around with attributes that are output by the merge content processor - merge.count and merge.bin.age. Depending on merge.bin.age value you can root the flow forward or to "/dev/null" equivalent.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2017 20:52:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-NiFi-forward-a-merged-content-based-on-the-number-of/m-p/140197#M102820</guid>
      <dc:creator>michal_rudko</dc:creator>
      <dc:date>2017-03-06T20:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Can NiFi forward a merged content based on the number of flowfiles merged over a specified time?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-NiFi-forward-a-merged-content-based-on-the-number-of/m-p/140198#M102821</link>
      <description>&lt;P&gt;ok, thank you&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2017 22:32:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-NiFi-forward-a-merged-content-based-on-the-number-of/m-p/140198#M102821</guid>
      <dc:creator>awhite4844</dc:creator>
      <dc:date>2017-03-06T22:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Can NiFi forward a merged content based on the number of flowfiles merged over a specified time?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-NiFi-forward-a-merged-content-based-on-the-number-of/m-p/140199#M102822</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/16165/awhite4844.html" nodeid="16165" target="_blank"&gt;@adrian white&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can use the MergeContent processor followed by a RouteOnAttribute processor to accomplish what you are looking to do.&lt;/P&gt;&lt;P&gt;The MergeContent processor writes an attribute named "merge.count" to the FlowFile containing all your merged source flowfiles.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="13281-screen-shot-2017-03-06-at-100549-am.png" style="width: 2084px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/21784iF7B3B719015263A4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="13281-screen-shot-2017-03-06-at-100549-am.png" alt="13281-screen-shot-2017-03-06-at-100549-am.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;- Set Min entries to "50" &lt;/P&gt;&lt;P&gt;- Set Max Entries to "50"&lt;/P&gt;&lt;P&gt;- Set Max Bin age to "1 min"&lt;/P&gt;&lt;P&gt;The bin age timer is trigger once the very first FlowFile is added.   At the end of 1 min or 50 FlowFiles (whichever occurs first) the Bin will be merged.&lt;/P&gt;&lt;P&gt;Connect the "merged" relationship to a RouteOnAttribute processor that checks the "merge.count" on the merged FlowFiles to verify that they contain 50 entries.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="13282-screen-shot-2017-03-06-at-101044-am.png" style="width: 2084px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/21785iEF212206877CB6A4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="13282-screen-shot-2017-03-06-at-101044-am.png" alt="13282-screen-shot-2017-03-06-at-101044-am.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;"small" will become a new relationship to the RouteOnAttribute processor.&lt;/P&gt;&lt;P&gt;- Auto-terminate the "small" relationship so that any merged FlowFile with fewer then 50 entries is deleted.&lt;/P&gt;&lt;P&gt;- Route the "unmatched" relationship on down the rest of your dataflow.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 08:22:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-NiFi-forward-a-merged-content-based-on-the-number-of/m-p/140199#M102822</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2019-08-19T08:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Can NiFi forward a merged content based on the number of flowfiles merged over a specified time?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-NiFi-forward-a-merged-content-based-on-the-number-of/m-p/140200#M102823</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/525/mclark.html" nodeid="525"&gt;@Matt Clarke&lt;/A&gt;. Perfect, thank you&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 04:49:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-NiFi-forward-a-merged-content-based-on-the-number-of/m-p/140200#M102823</guid>
      <dc:creator>awhite4844</dc:creator>
      <dc:date>2017-03-08T04:49:55Z</dc:date>
    </item>
  </channel>
</rss>

