<?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 How to use Notify/Wait in PutFile in two different locations in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-use-Notify-Wait-in-PutFile-in-two-different-locations/m-p/177670#M80198</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="80384-waitnotify.png" style="width: 1445px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19554iE68BA23CAA8FC4F7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="80384-waitnotify.png" alt="80384-waitnotify.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;I would like to create data flow,which put file to one directory, and the if it has succeded, put the same file to another directory&lt;/P&gt;&lt;P&gt;I use for that Notify/Wait, but I wonder if uuid is a good solution for the signal, &lt;/P&gt;&lt;P&gt;Are Wait/Notify properties adequate ?&lt;/P&gt;&lt;P&gt; or if there is another way ?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="80388-wait.png" style="width: 848px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19555i9C6FC8E4FDE92461/image-size/medium?v=v2&amp;amp;px=400" role="button" title="80388-wait.png" alt="80388-wait.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="80387-notify.png" style="width: 851px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19556i23B36B6E22B06631/image-size/medium?v=v2&amp;amp;px=400" role="button" title="80387-notify.png" alt="80387-notify.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 18 Aug 2019 09:41:03 GMT</pubDate>
    <dc:creator>marynowskixtoma</dc:creator>
    <dc:date>2019-08-18T09:41:03Z</dc:date>
    <item>
      <title>How to use Notify/Wait in PutFile in two different locations</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-use-Notify-Wait-in-PutFile-in-two-different-locations/m-p/177670#M80198</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="80384-waitnotify.png" style="width: 1445px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19554iE68BA23CAA8FC4F7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="80384-waitnotify.png" alt="80384-waitnotify.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;I would like to create data flow,which put file to one directory, and the if it has succeded, put the same file to another directory&lt;/P&gt;&lt;P&gt;I use for that Notify/Wait, but I wonder if uuid is a good solution for the signal, &lt;/P&gt;&lt;P&gt;Are Wait/Notify properties adequate ?&lt;/P&gt;&lt;P&gt; or if there is another way ?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="80388-wait.png" style="width: 848px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19555i9C6FC8E4FDE92461/image-size/medium?v=v2&amp;amp;px=400" role="button" title="80388-wait.png" alt="80388-wait.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="80387-notify.png" style="width: 851px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19556i23B36B6E22B06631/image-size/medium?v=v2&amp;amp;px=400" role="button" title="80387-notify.png" alt="80387-notify.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 09:41:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-use-Notify-Wait-in-PutFile-in-two-different-locations/m-p/177670#M80198</guid>
      <dc:creator>marynowskixtoma</dc:creator>
      <dc:date>2019-08-18T09:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Notify/Wait in PutFile in two different locations</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-use-Notify-Wait-in-PutFile-in-two-different-locations/m-p/177671#M80199</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/83334/marynowskixtomasz.html" nodeid="83334"&gt;@Tommy&lt;/A&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Why even use the "wait" and "notify" processors in this scenario?&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;All you need to do is feed the "success" relationship form location A PutFile processor to the processor writing to location B. Same file will be written to both locations and will only be written to location B if Location A was successful.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;When an "Answer" addresses/solves your question, please select "Accept" beneath that answer. This encourages user participation in this forum.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jul 2018 19:45:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-use-Notify-Wait-in-PutFile-in-two-different-locations/m-p/177671#M80199</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2018-07-03T19:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Notify/Wait in PutFile in two different locations</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-use-Notify-Wait-in-PutFile-in-two-different-locations/m-p/177672#M80200</link>
      <description>&lt;P&gt;ok you are right, for this kind of flow&lt;/P&gt;&lt;P&gt;but when I have for example:&lt;/P&gt;&lt;P&gt;- one flow for data acquisition from source to Cassandra in one process group&lt;/P&gt;&lt;P&gt;- second flow for data ingestion from Cassandra in another process group&lt;/P&gt;&lt;P&gt;How to set properties in Wait/Notify in this kind of flow ? &lt;/P&gt;&lt;P&gt;Unless there is also possible another solution ..&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jul 2018 00:27:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-use-Notify-Wait-in-PutFile-in-two-different-locations/m-p/177672#M80200</guid>
      <dc:creator>marynowskixtoma</dc:creator>
      <dc:date>2018-07-04T00:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Notify/Wait in PutFile in two different locations</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-use-Notify-Wait-in-PutFile-in-two-different-locations/m-p/177673#M80201</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/83334/marynowskixtomasz.html" nodeid="83334"&gt;@Tommy&lt;/A&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;*** Forum tip:  Please try to avoid responding to an Answer by starting a new answer.  Instead use the "add comment" tp respond to en existing answer.  There is no guaranteed order to different answers which can make following a response thread difficult especially when multiple people are trying to assist you. Also use the @username when replying to make sure user gets notified about your response.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;You need to answer the question:&lt;BR /&gt;What links these two FlowFiles to one another?&lt;BR /&gt;-&lt;/P&gt;&lt;P&gt;Since you are evaluating FlowFiles in pairs.  What if you get two Files of type A.  How do you want the processor to know what file type B belongs with which of the two type files that already arrived?&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;If this is not a concern you could use a simple wait/notify flow as described here to accomplish this:&lt;BR /&gt;&lt;A href="https://gist.github.com/ijokarumawak/375915c45071c7cbfddd34d5032c8e90" target="_blank"&gt;https://gist.github.com/ijokarumawak/375915c45071c7cbfddd34d5032c8e90&lt;/A&gt;&lt;BR /&gt;-&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 03:11:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-use-Notify-Wait-in-PutFile-in-two-different-locations/m-p/177673#M80201</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2018-07-17T03:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Notify/Wait in PutFile in two different locations</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-use-Notify-Wait-in-PutFile-in-two-different-locations/m-p/177674#M80202</link>
      <description>&lt;P&gt;Ok, thanks Matt, this template helps me&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 12:42:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-use-Notify-Wait-in-PutFile-in-two-different-locations/m-p/177674#M80202</guid>
      <dc:creator>marynowskixtoma</dc:creator>
      <dc:date>2018-07-19T12:42:58Z</dc:date>
    </item>
  </channel>
</rss>

