<?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 Logic behind starting active Namenode in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Logic-behind-starting-active-Namenode/m-p/111683#M46680</link>
    <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;When we are restarting both NN in HA environment, how can we guess which one will be active namenode and which one move to Standby namenode mode?&lt;/P&gt;&lt;P&gt;Do we have any logic or just like which every come 1st will be active and late one will be passive?&lt;/P&gt;&lt;P&gt;Any information is highly appropriated. &lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Sat, 19 Nov 2016 03:20:54 GMT</pubDate>
    <dc:creator>bandarusridhar1</dc:creator>
    <dc:date>2016-11-19T03:20:54Z</dc:date>
    <item>
      <title>Logic behind starting active Namenode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Logic-behind-starting-active-Namenode/m-p/111683#M46680</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;When we are restarting both NN in HA environment, how can we guess which one will be active namenode and which one move to Standby namenode mode?&lt;/P&gt;&lt;P&gt;Do we have any logic or just like which every come 1st will be active and late one will be passive?&lt;/P&gt;&lt;P&gt;Any information is highly appropriated. &lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Sat, 19 Nov 2016 03:20:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Logic-behind-starting-active-Namenode/m-p/111683#M46680</guid>
      <dc:creator>bandarusridhar1</dc:creator>
      <dc:date>2016-11-19T03:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Logic behind starting active Namenode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Logic-behind-starting-active-Namenode/m-p/111684#M46681</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/5746/bandarusridhar1.html" nodeid="5746"&gt;@SBandaru&lt;/A&gt;&lt;P&gt;Suppose you have two Namenodes A and B. &lt;/P&gt;&lt;P&gt;A is active and B is Standby --&amp;gt; If you restart Namenode A, ZKFC(Zookeeper failover controller) will detect that Namenode A is not reachable(When daemon is restarting), fencing will happen and Namenode B will be active NN.&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;B is active and A is Standby --&amp;gt; If you restart both the Namenodes, whichever comes up first and respond to ZKFC will become active and ultimately another one will become standby.&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;H4&gt;&lt;STRONG&gt;Now both Namenode thinks that they are active and sends write request to quorum journal manager with their epoc number, how QJM handles this situation?&lt;/STRONG&gt;&lt;/H4&gt;&lt;P&gt;Quorum journal manager stores epoc number locally which called as promised epoc. Whenever JournalNode receives RPC request along with epoc number from Namenode, it compares the epoch number with promised epoch. If request is coming from newer node which means epoc number is greater than promised epoc then it&lt;STRONG&gt;records new epoc number as promised epoc&lt;/STRONG&gt;. If the request is coming from Namenode with older epoc number, then QJM simply rejects the request.&lt;/P&gt;&lt;P&gt;Please refer - &lt;A href="https://community.hortonworks.com/articles/27225/how-qjm-works-in-namenode-ha.html" target="_blank"&gt;https://community.hortonworks.com/articles/27225/how-qjm-works-in-namenode-ha.html&lt;/A&gt; for more details about how QJM works.&lt;/P&gt;&lt;P&gt;Hope this information helps! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Nov 2016 05:02:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Logic-behind-starting-active-Namenode/m-p/111684#M46681</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2016-11-19T05:02:46Z</dc:date>
    </item>
  </channel>
</rss>

