<?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: Nifi : Implement Sleep Mechanism in nifi without Executescript in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Implement-Sleep-Mechanism-in-nifi-without-Executescript/m-p/397830#M249991</link>
    <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lists3-&amp;gt;fetchs3-&amp;gt;compress the files(4 or 5 files usually)-&amp;gt;put target s3-&amp;gt;Fetchs3 again-&amp;gt;Puts3 Archive folder-&amp;gt;DeleteS3(Remove Original file)-&amp;gt;(Check all 5 files are processed till delete, if any one file is missing Route all 5 to Failure else Route all 5 to success) , for this last step , i have used Execute script, now i am looking for Native processors.&lt;/P&gt;&lt;P&gt;Kindly let me know if you need more information on this.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Nov 2024 15:59:48 GMT</pubDate>
    <dc:creator>rajivswe_2k7</dc:creator>
    <dc:date>2024-11-21T15:59:48Z</dc:date>
    <item>
      <title>Nifi : Implement Sleep Mechanism in nifi without Executescript</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Implement-Sleep-Mechanism-in-nifi-without-Executescript/m-p/397824#M249988</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I am trying to implement for the scenario where the events should sleep for 5 minutes and let all the flow files are queued up, then check the count of the files if it is greater than 10 route to failure else route to SUCCESS.&lt;/P&gt;&lt;P&gt;I did in Execute script processor as below. However, i am trying to avoid the executescript for this and try to use Native nifi processors.&lt;/P&gt;&lt;P&gt;====== Executescript ===============&lt;/P&gt;&lt;P&gt;Thread.sleep(300000)&lt;BR /&gt;def flowFiles = session.get(100)&lt;BR /&gt;if (!flowFiles || flowFiles.size() &amp;lt;= 10) {&lt;BR /&gt;session.transfer(flowFiles, REL_SUCCESS)&lt;BR /&gt;} else {&lt;BR /&gt;session.transfer(flowFiles, REL_FAILURE)&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 09:58:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Implement-Sleep-Mechanism-in-nifi-without-Executescript/m-p/397824#M249988</guid>
      <dc:creator>rajivswe_2k7</dc:creator>
      <dc:date>2024-11-21T09:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi : Implement Sleep Mechanism in nifi without Executescript</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Implement-Sleep-Mechanism-in-nifi-without-Executescript/m-p/397826#M249990</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/51895"&gt;@rajivswe_2k7&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;What is the use case for wanting to hold downstream processing of FlowFiles until a min 10 are queued?&amp;nbsp; This is not a typical use pattern for NiFi.&amp;nbsp; While I am sure it could be done without using a scripting processor,I don't think it would be as efficient in terms of resources.&lt;BR /&gt;&lt;BR /&gt;Creative use of the MergeContent processor comes to mind here.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please help our community thrive. If you found&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on&amp;nbsp;&lt;STRONG&gt;one or more&lt;/STRONG&gt;&amp;nbsp;of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 13:40:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Implement-Sleep-Mechanism-in-nifi-without-Executescript/m-p/397826#M249990</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2024-11-21T13:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi : Implement Sleep Mechanism in nifi without Executescript</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Implement-Sleep-Mechanism-in-nifi-without-Executescript/m-p/397830#M249991</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lists3-&amp;gt;fetchs3-&amp;gt;compress the files(4 or 5 files usually)-&amp;gt;put target s3-&amp;gt;Fetchs3 again-&amp;gt;Puts3 Archive folder-&amp;gt;DeleteS3(Remove Original file)-&amp;gt;(Check all 5 files are processed till delete, if any one file is missing Route all 5 to Failure else Route all 5 to success) , for this last step , i have used Execute script, now i am looking for Native processors.&lt;/P&gt;&lt;P&gt;Kindly let me know if you need more information on this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 15:59:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Implement-Sleep-Mechanism-in-nifi-without-Executescript/m-p/397830#M249991</guid>
      <dc:creator>rajivswe_2k7</dc:creator>
      <dc:date>2024-11-21T15:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi : Implement Sleep Mechanism in nifi without Executescript</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Implement-Sleep-Mechanism-in-nifi-without-Executescript/m-p/397895#M250018</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/51895"&gt;@rajivswe_2k7&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Why are you fetching same files twice?&lt;BR /&gt;&lt;BR /&gt;I don't follow the "fail" all 5 if any one of them fails.&amp;nbsp; You successfully wrote some of them to destinations.&amp;nbsp; So what action are you taking when a partial failure happens (for example only 1 of 5 fails to write to archive?&lt;BR /&gt;&lt;BR /&gt;Why not just build dataflow around failure relationships to notify you of the specific files that failed?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please help our community thrive. If you found&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on&amp;nbsp;&lt;STRONG&gt;one or more&lt;/STRONG&gt;&amp;nbsp;of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 13:50:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Implement-Sleep-Mechanism-in-nifi-without-Executescript/m-p/397895#M250018</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2024-11-22T13:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi : Implement Sleep Mechanism in nifi without Executescript</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Implement-Sleep-Mechanism-in-nifi-without-Executescript/m-p/398176#M250123</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;. Yes , Initially, i have designed the partial failure. Now , i have changed the design to captured on the failure flow files and send the alert on that. Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2024 05:58:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Implement-Sleep-Mechanism-in-nifi-without-Executescript/m-p/398176#M250123</guid>
      <dc:creator>rajivswe_2k7</dc:creator>
      <dc:date>2024-11-28T05:58:41Z</dc:date>
    </item>
  </channel>
</rss>

