<?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: Falcon mirror recipe: What happens if an instance is still running when the next is scheduled to start? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Falcon-mirror-recipe-What-happens-if-an-instance-is-still/m-p/94813#M8083</link>
    <description>&lt;P&gt;If you are asking about using recipes for mirroring, if you look at hdfs-replication-template.xml or hive-replication-template.xml has below properties set to ensure only one instance runs.&lt;/P&gt;&lt;PRE&gt;&amp;lt;parallel&amp;gt;1&amp;lt;/parallel&amp;gt;
&amp;lt;!-- Dir replication needs to run only once to catch up --&amp;gt;     
&amp;lt;order&amp;gt;LAST_ONLY&amp;lt;/order&amp;gt;&lt;/PRE&gt;&lt;P&gt;--------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;In general, in Falcon this can be controlled using &amp;lt;parallel&amp;gt; and &amp;lt;order&amp;gt; properties in the entity xml. Parallel decides the concurrent replication instances that can run at any given time and order decides the execution order for replication instances like FIFO, LIFO and LAST_ONLY. For replication job needs to run only once to catch up. Setting below configs in entity xml will ensure this:&lt;/P&gt;&lt;PRE&gt;&amp;lt;parallel&amp;gt;1&amp;lt;/parallel&amp;gt;

&amp;lt;order&amp;gt;LAST_ONLY&amp;lt;/order&amp;gt;&lt;/PRE&gt;&lt;P&gt;Parallel maps to concurrency and order maps to execution in Oozie. Please refer &lt;A href="https://oozie.apache.org/docs/4.2.0/CoordinatorFunctionalSpec.html"&gt;Oozie doc&lt;/A&gt; for more details.&lt;/P&gt;</description>
    <pubDate>Wed, 28 Oct 2015 03:23:07 GMT</pubDate>
    <dc:creator>sramesh</dc:creator>
    <dc:date>2015-10-28T03:23:07Z</dc:date>
    <item>
      <title>Falcon mirror recipe: What happens if an instance is still running when the next is scheduled to start?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Falcon-mirror-recipe-What-happens-if-an-instance-is-still/m-p/94811#M8081</link>
      <description>&lt;P&gt;When using the Falcon "Mirror Recipe", what happens if an instance is still running when the next is scheduled to start?&lt;/P&gt;</description>
      <pubDate>Sat, 03 Oct 2015 15:13:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Falcon-mirror-recipe-What-happens-if-an-instance-is-still/m-p/94811#M8081</guid>
      <dc:creator>sroberts</dc:creator>
      <dc:date>2015-10-03T15:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Falcon mirror recipe: What happens if an instance is still running when the next is scheduled to start?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Falcon-mirror-recipe-What-happens-if-an-instance-is-still/m-p/94812#M8082</link>
      <description>&lt;P&gt;The Falcon "Mirror" Recipe has "parallelism" set to 1 since replication needs to run only once to catch up. The next instance will wait for the current instance to complete.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Oct 2015 23:48:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Falcon-mirror-recipe-What-happens-if-an-instance-is-still/m-p/94812#M8082</guid>
      <dc:creator>bvellanki</dc:creator>
      <dc:date>2015-10-23T23:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Falcon mirror recipe: What happens if an instance is still running when the next is scheduled to start?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Falcon-mirror-recipe-What-happens-if-an-instance-is-still/m-p/94813#M8083</link>
      <description>&lt;P&gt;If you are asking about using recipes for mirroring, if you look at hdfs-replication-template.xml or hive-replication-template.xml has below properties set to ensure only one instance runs.&lt;/P&gt;&lt;PRE&gt;&amp;lt;parallel&amp;gt;1&amp;lt;/parallel&amp;gt;
&amp;lt;!-- Dir replication needs to run only once to catch up --&amp;gt;     
&amp;lt;order&amp;gt;LAST_ONLY&amp;lt;/order&amp;gt;&lt;/PRE&gt;&lt;P&gt;--------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;In general, in Falcon this can be controlled using &amp;lt;parallel&amp;gt; and &amp;lt;order&amp;gt; properties in the entity xml. Parallel decides the concurrent replication instances that can run at any given time and order decides the execution order for replication instances like FIFO, LIFO and LAST_ONLY. For replication job needs to run only once to catch up. Setting below configs in entity xml will ensure this:&lt;/P&gt;&lt;PRE&gt;&amp;lt;parallel&amp;gt;1&amp;lt;/parallel&amp;gt;

&amp;lt;order&amp;gt;LAST_ONLY&amp;lt;/order&amp;gt;&lt;/PRE&gt;&lt;P&gt;Parallel maps to concurrency and order maps to execution in Oozie. Please refer &lt;A href="https://oozie.apache.org/docs/4.2.0/CoordinatorFunctionalSpec.html"&gt;Oozie doc&lt;/A&gt; for more details.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2015 03:23:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Falcon-mirror-recipe-What-happens-if-an-instance-is-still/m-p/94813#M8083</guid>
      <dc:creator>sramesh</dc:creator>
      <dc:date>2015-10-28T03:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: Falcon mirror recipe: What happens if an instance is still running when the next is scheduled to start?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Falcon-mirror-recipe-What-happens-if-an-instance-is-still/m-p/94814#M8084</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/377/sramesh.html" nodeid="377"&gt;@Sowmya Ramesh&lt;/A&gt; - Good answer!

Since this was specific to "recipes", can you move the recipe part of the question to the top of your answer and keep the further detail on "parallel" and "order" after that.

Then I can accept.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2015 05:25:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Falcon-mirror-recipe-What-happens-if-an-instance-is-still/m-p/94814#M8084</guid>
      <dc:creator>sroberts</dc:creator>
      <dc:date>2015-10-28T05:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: Falcon mirror recipe: What happens if an instance is still running when the next is scheduled to start?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Falcon-mirror-recipe-What-happens-if-an-instance-is-still/m-p/94815#M8085</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/150/sroberts.html" nodeid="150"&gt;@Sean Roberts&lt;/A&gt;: Done!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2015 06:21:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Falcon-mirror-recipe-What-happens-if-an-instance-is-still/m-p/94815#M8085</guid>
      <dc:creator>sramesh</dc:creator>
      <dc:date>2015-10-28T06:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Falcon mirror recipe: What happens if an instance is still running when the next is scheduled to start?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Falcon-mirror-recipe-What-happens-if-an-instance-is-still/m-p/94816#M8086</link>
      <description>&lt;P&gt;Good answer. Somwa's was more complete with a description of how it works.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2015 18:02:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Falcon-mirror-recipe-What-happens-if-an-instance-is-still/m-p/94816#M8086</guid>
      <dc:creator>sroberts</dc:creator>
      <dc:date>2015-10-28T18:02:04Z</dc:date>
    </item>
  </channel>
</rss>

