<?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: Simple Nifi 1.6.0 Wait/Notify example in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Simple-Nifi-1-6-0-Wait-Notify-example/m-p/218251#M180152</link>
    <description>&lt;P&gt;You know when you first start coding in a language and you keep piling code on top of code to make something simple happen and it feels wrong because it shouldn't be this hard? This feels a bit like that... so I need a notify to open the gate in the first instance and then the second notify opens the gate again when the thing leaves? What if something else flows past the first notify while the process is still running? It just feels... odd. Not saying it's wrong, but it feels crufty.&lt;/P&gt;&lt;P&gt;What I'm looking for is something like, when count(waits) = count(notifys), let the file through.&lt;/P&gt;&lt;P&gt;So, at the start, count(Waits) = count(Notifys) (0 = 0), so the first file goes through. Now count(waits) = count(Notifys) + 1, so the files stop. First file leaves the flow, so Count(Waits) = count(Notifys) so next file runs.&lt;/P&gt;&lt;P&gt;That's a pretty specific use case, so another way to think about it is (and I'd have thought this would be a pretty standard Wait/Notify usage) is traffic lights - the "wait" is green by default and then turns red when a file passes and turns green again when the notify is tripped.&lt;/P&gt;</description>
    <pubDate>Tue, 17 Apr 2018 02:51:32 GMT</pubDate>
    <dc:creator>laurie_mcintosh</dc:creator>
    <dc:date>2018-04-17T02:51:32Z</dc:date>
    <item>
      <title>Simple Nifi 1.6.0 Wait/Notify example</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Simple-Nifi-1-6-0-Wait-Notify-example/m-p/218247#M180148</link>
      <description>&lt;P&gt;To test the Nifi wait/notify processors I have the following simple example:&lt;/P&gt;&lt;P&gt;Getfile -&amp;gt; Wait -&amp;gt; Putfile -&amp;gt; Notify&lt;/P&gt;&lt;P&gt;So, I get some files from the getfile. I want to, one by one, put them into the putfile folder (obviously, I don't need the wait/notify processor here to do this.&lt;/P&gt;&lt;P&gt;So, I'd expect the getfile to get all of the files at once and hand them onto the wait. It never leaves the wait, is my problem.&lt;/P&gt;&lt;P&gt;i'm not getting any warnings, I have the DistributedMapCacheClientService setup as well as the DistributedMapCacheServer. I've assigned a Release Signal Identifier to the wait and notify of "release". All else is defaults.&lt;/P&gt;&lt;P&gt;What am I missing?&lt;/P&gt;&lt;P&gt;Thanks all,&lt;/P&gt;&lt;P&gt;---=L&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2018 10:55:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Simple-Nifi-1-6-0-Wait-Notify-example/m-p/218247#M180148</guid>
      <dc:creator>laurie_mcintosh</dc:creator>
      <dc:date>2018-04-16T10:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Nifi 1.6.0 Wait/Notify example</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Simple-Nifi-1-6-0-Wait-Notify-example/m-p/218248#M180149</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/73318/lauriemcintosh.html" nodeid="73318"&gt;@Laurie McIntosh&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This is expected. Data Flows in your example are blocked at the Wait processor hence there's no flowfile going through the Putfile and then Notify to unblock the file blocked in the wait. Notify is never triggered here. You need to have your Notify in an independent flow with the triggering logic.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2018 17:18:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Simple-Nifi-1-6-0-Wait-Notify-example/m-p/218248#M180149</guid>
      <dc:creator>ahadjidj</dc:creator>
      <dc:date>2018-04-16T17:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Nifi 1.6.0 Wait/Notify example</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Simple-Nifi-1-6-0-Wait-Notify-example/m-p/218249#M180150</link>
      <description>&lt;P&gt;Right... what I'm trying to do is setup a gate here... so the first file trips the gate (the Wait) and stops the rest flowing through, and then the first file hits the second gate (the Notify) and leaves the flow, allowing the next file to flow through. I thought the Wait/Notify pair would do that.&lt;/P&gt;&lt;P&gt;If not, how can I do that?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2018 17:29:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Simple-Nifi-1-6-0-Wait-Notify-example/m-p/218249#M180150</guid>
      <dc:creator>laurie_mcintosh</dc:creator>
      <dc:date>2018-04-16T17:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Nifi 1.6.0 Wait/Notify example</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Simple-Nifi-1-6-0-Wait-Notify-example/m-p/218250#M180151</link>
      <description>&lt;P&gt;Something you can do is to trigger a first Notify manually and let the gate do the rest. For instance, you can use a Generateflowfile with a notify for initial triggering and stop it afterward. This works but I don't know if there's a better way to do it. If the idea is to control flows, take a look at control rate processor which can be helpful.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="68482-screen-shot-2018-04-16-at-12821-pm.png" style="width: 2096px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16086iB59DBD9956641380/image-size/medium?v=v2&amp;amp;px=400" role="button" title="68482-screen-shot-2018-04-16-at-12821-pm.png" alt="68482-screen-shot-2018-04-16-at-12821-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 02:51:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Simple-Nifi-1-6-0-Wait-Notify-example/m-p/218250#M180151</guid>
      <dc:creator>ahadjidj</dc:creator>
      <dc:date>2019-08-18T02:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Nifi 1.6.0 Wait/Notify example</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Simple-Nifi-1-6-0-Wait-Notify-example/m-p/218251#M180152</link>
      <description>&lt;P&gt;You know when you first start coding in a language and you keep piling code on top of code to make something simple happen and it feels wrong because it shouldn't be this hard? This feels a bit like that... so I need a notify to open the gate in the first instance and then the second notify opens the gate again when the thing leaves? What if something else flows past the first notify while the process is still running? It just feels... odd. Not saying it's wrong, but it feels crufty.&lt;/P&gt;&lt;P&gt;What I'm looking for is something like, when count(waits) = count(notifys), let the file through.&lt;/P&gt;&lt;P&gt;So, at the start, count(Waits) = count(Notifys) (0 = 0), so the first file goes through. Now count(waits) = count(Notifys) + 1, so the files stop. First file leaves the flow, so Count(Waits) = count(Notifys) so next file runs.&lt;/P&gt;&lt;P&gt;That's a pretty specific use case, so another way to think about it is (and I'd have thought this would be a pretty standard Wait/Notify usage) is traffic lights - the "wait" is green by default and then turns red when a file passes and turns green again when the notify is tripped.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2018 02:51:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Simple-Nifi-1-6-0-Wait-Notify-example/m-p/218251#M180152</guid>
      <dc:creator>laurie_mcintosh</dc:creator>
      <dc:date>2018-04-17T02:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Nifi 1.6.0 Wait/Notify example</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Simple-Nifi-1-6-0-Wait-Notify-example/m-p/398453#M250197</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/49236"&gt;@laurie_mcintosh&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;BR /&gt;Did you ever get around this issue?&lt;BR /&gt;I'm looking at the same use case in Nifi&amp;nbsp;&lt;SPAN&gt;1.18.0.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2024 17:21:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Simple-Nifi-1-6-0-Wait-Notify-example/m-p/398453#M250197</guid>
      <dc:creator>Mandeep_Saluja</dc:creator>
      <dc:date>2024-12-05T17:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Nifi 1.6.0 Wait/Notify example</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Simple-Nifi-1-6-0-Wait-Notify-example/m-p/398463#M250201</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/111117"&gt;@Mandeep_Saluja&lt;/a&gt;&amp;nbsp;As this is an older post, you would have a better chance of receiving a resolution by&lt;A href="“https://community.cloudera.com/t5/forums/postpage/board-id/Questions”" target="_blank"&gt; starting a new thread&lt;/A&gt;. This will also be an opportunity to provide details specific to your environment that could aid others in assisting you with a more accurate answer to your question. You can link this thread as a reference in your new post. Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2024 21:00:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Simple-Nifi-1-6-0-Wait-Notify-example/m-p/398463#M250201</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2024-12-05T21:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Nifi 1.6.0 Wait/Notify example</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Simple-Nifi-1-6-0-Wait-Notify-example/m-p/398589#M250248</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/49236"&gt;@laurie_mcintosh&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The Wait/Notify processors have existed a long time in Apache NiFi and are complicated to use correctly.&amp;nbsp; I strongly encourage you to read the following about the Wait/Notify:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://ijokarumawak.github.io/nifi/2017/02/02/nifi-notify-batch/" target="_blank"&gt;https://ijokarumawak.github.io/nifi/2017/02/02/nifi-notify-batch/&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://pierrevillard.com/2018/2018-06-27-nifi-workflow-monitoring-wait-notify-pattern-with-split-and-merge/" target="_blank"&gt;https://pierrevillard.com/2018/2018-06-27-nifi-workflow-monitoring-wait-notify-pattern-with-split-and-merge/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;With advancements in Apache NIFi and depending on your use case, there may be easier ways to handle your use case.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/html/user-guide.html#Flowfile_Concurrency" target="_blank"&gt;Process Group FlowFile Concurrency&lt;/A&gt;&amp;nbsp;in conjunction with &lt;A href="https://nifi.apache.org/docs/nifi-docs/html/user-guide.html#Outbound_Policy" target="_blank"&gt;Process Group Outbound Policy&lt;/A&gt;&amp;nbsp; is a newer option that has often been used in place of wait/notify setups.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Unrelated...&amp;nbsp; If you are running a NiFi cluster and the target directory is a network mount directory, you should be using the ListFile/FetchFile processors in place of the GetFile.&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;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2024 19:53:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Simple-Nifi-1-6-0-Wait-Notify-example/m-p/398589#M250248</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2024-12-09T19:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Nifi 1.6.0 Wait/Notify example</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Simple-Nifi-1-6-0-Wait-Notify-example/m-p/398870#M250324</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/111117"&gt;@Mandeep_Saluja&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/49236"&gt;@laurie_mcintosh&lt;/a&gt;&amp;nbsp;Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2024 23:59:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Simple-Nifi-1-6-0-Wait-Notify-example/m-p/398870#M250324</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2024-12-13T23:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Nifi 1.6.0 Wait/Notify example</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Simple-Nifi-1-6-0-Wait-Notify-example/m-p/399212#M250448</link>
      <description>&lt;P&gt;Thanks for the references&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;.&lt;BR /&gt;&lt;BR /&gt;Currently I've implemented a workaround with counters, and querying the nifi-api with http requests to get around this.&amp;nbsp;&lt;BR /&gt;It's definitely not a bullet proof implementation, with corner cases that need to be handled separately, but it's a start to build off of.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2024 19:31:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Simple-Nifi-1-6-0-Wait-Notify-example/m-p/399212#M250448</guid>
      <dc:creator>Mandeep_Saluja</dc:creator>
      <dc:date>2024-12-20T19:31:22Z</dc:date>
    </item>
  </channel>
</rss>

