<?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: How actually namenode HA QJM works? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-actually-namenode-HA-QJM-works/m-p/375927#M242704</link>
    <description>&lt;P&gt;Hello! Can the user send request to both standby and active name node? And if the name node fails to fulfill the request, standby namenode can replace the current active name node?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 03 Sep 2023 02:45:49 GMT</pubDate>
    <dc:creator>Ankita3087</dc:creator>
    <dc:date>2023-09-03T02:45:49Z</dc:date>
    <item>
      <title>How actually namenode HA QJM works?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-actually-namenode-HA-QJM-works/m-p/192545#M154613</link>
      <description>&lt;DIV class="post-text"&gt;

&lt;P&gt;I read the QJM in hadoop official documentation but there is no clear control flow explanation&lt;/P&gt;

&lt;P&gt;So far I understand was &lt;/P&gt;

&lt;UL&gt;&lt;LI&gt;&lt;P&gt;When the namenode fails zookeeper failure controller will detect and change the standby namenode as active namenode.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Only active namenode will write the edit log in Journal node&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;Journal will sync the edit log with standby namenode&lt;/LI&gt;&lt;/UL&gt;

&lt;P&gt;Can any one please explain how the real flow works?&lt;/P&gt;

&lt;P&gt;For example&lt;/P&gt;

&lt;UL&gt;&lt;LI&gt;step 1: when client connects request goes here ....&lt;/LI&gt;&lt;LI&gt;step 2: it will take care of these request ....&lt;/LI&gt;&lt;LI&gt;step 3: if it fails it will happen the request will go there....&lt;/LI&gt;&lt;/UL&gt;

&lt;P&gt;Like that can anyone please explain the complete flow of QJM&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;
    &lt;/DIV&gt;</description>
      <pubDate>Thu, 18 Jan 2018 12:07:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-actually-namenode-HA-QJM-works/m-p/192545#M154613</guid>
      <dc:creator>karthiknedunche</dc:creator>
      <dc:date>2018-01-18T12:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: How actually namenode HA QJM works?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-actually-namenode-HA-QJM-works/m-p/192546#M154614</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/59157/karthiknedunchezhiyan1997.html" nodeid="59157"&gt;@karthik nedunchezhiyan&lt;/A&gt;&lt;P&gt;Did you get chance to look this arictle &lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2018 12:59:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-actually-namenode-HA-QJM-works/m-p/192546#M154614</guid>
      <dc:creator>bandarusridhar1</dc:creator>
      <dc:date>2018-01-18T12:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: How actually namenode HA QJM works?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-actually-namenode-HA-QJM-works/m-p/192547#M154615</link>
      <description>&lt;P&gt;In HA there will be two Namenodes, one is &lt;B&gt;Active&lt;/B&gt; and other one is in the &lt;B&gt;Standby&lt;/B&gt; state.The &lt;B&gt;Active&lt;/B&gt; Namenode is primarily responsible for all running, upcoming operations and client requests in the cluster. At same time Standby acts as a slave.To maintain synchronization between &lt;B&gt;Active&lt;/B&gt; and &lt;B&gt;Standby&lt;/B&gt; nodes they both communicate with a group of demons called JournalNodes(JNs).&lt;/P&gt;&lt;P&gt;If there any Namespace modifications done by Active name node logs a modification record to a majority of these present JNs.The standby node reads the edits from the JNs and continuously watches the changes in edit log from JNs. Standby node updates its own namespace of observes in edits every time.JNs are shared edits in presence of QJM.when failover happens, the Standby ensures that it has read all edits from JNs before it takes over the Active position.&lt;/P&gt;&lt;P&gt;Standby acts as secondary name node because it performs all tasks done by secondary name node. So in HA configuration cluster no need of Secondary Namenode.&lt;/P&gt;&lt;P&gt;Hope this helps you. &lt;A rel="user" href="https://community.cloudera.com/users/59157/karthiknedunchezhiyan1997.html" nodeid="59157"&gt;@karthik nedunchezhiyan&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2018 13:20:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-actually-namenode-HA-QJM-works/m-p/192547#M154615</guid>
      <dc:creator>vinod_nerella</dc:creator>
      <dc:date>2018-01-18T13:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: How actually namenode HA QJM works?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-actually-namenode-HA-QJM-works/m-p/192548#M154616</link>
      <description>&lt;P&gt;Yes i saw that but he didn't explain the actual work flow&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2018 17:20:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-actually-namenode-HA-QJM-works/m-p/192548#M154616</guid>
      <dc:creator>karthiknedunche</dc:creator>
      <dc:date>2018-01-18T17:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: How actually namenode HA QJM works?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-actually-namenode-HA-QJM-works/m-p/192549#M154617</link>
      <description>&lt;P&gt;What will happen is edit log on Journal node becomes large?&lt;/P&gt;&lt;P&gt;Will standby namenode send new FSimage to active namenode?&lt;/P&gt;&lt;P&gt;How client finds the active namenode?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2018 17:22:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-actually-namenode-HA-QJM-works/m-p/192549#M154617</guid>
      <dc:creator>karthiknedunche</dc:creator>
      <dc:date>2018-01-18T17:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: How actually namenode HA QJM works?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-actually-namenode-HA-QJM-works/m-p/192550#M154618</link>
      <description>&lt;DIV class="comment-text"&gt;&lt;P&gt;What will happen is edit log on Journal node becomes large?&lt;/P&gt;
&lt;P&gt;Will standby namenode send new FSimage to active namenode?&lt;/P&gt;
&lt;P&gt;How client finds the active namenode?&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 18 Jan 2018 17:23:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-actually-namenode-HA-QJM-works/m-p/192550#M154618</guid>
      <dc:creator>karthiknedunche</dc:creator>
      <dc:date>2018-01-18T17:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: How actually namenode HA QJM works?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-actually-namenode-HA-QJM-works/m-p/192551#M154619</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/59157/karthiknedunchezhiyan1997.html" rel="nofollow noopener noreferrer" target="_blank"&gt;karthik nedunchezhiyan&lt;/A&gt; A simplified explanation of the process : &lt;/P&gt;&lt;P&gt;Whenever a NN HA is achieved,  there will be two NNs , One &lt;STRONG&gt;Active NN&lt;/STRONG&gt; and other &lt;STRONG&gt;Standby NN&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;1) DataNodes will send heartbeats to both NNs , so both Active and Standby will know where the blocks are placed.&lt;/P&gt;&lt;P&gt;2) &lt;STRONG&gt;Journal Nodes&lt;/STRONG&gt; maintain the Shared edits , Whenever there is a write operation the JNs will update the edits, not the Active or Standby NN. Once the edits are updated by JN, the Standby will update its FS Image.&lt;/P&gt;&lt;P&gt;3)So this way at any point in time both the Active and the Standby will have the same updated FS Image.&lt;/P&gt;&lt;P&gt;4)&lt;STRONG&gt;Zookeeper&lt;/STRONG&gt; will be responsible for holding the lock for the Active NN. &lt;/P&gt;&lt;P&gt;5) There will be two &lt;STRONG&gt;Zookeeper Failover Controllers&lt;/STRONG&gt;, which will be responsible for monitoring the health of the NNs.&lt;/P&gt;&lt;P&gt;6) Whenever the Zookeeper does not receive a communication from the Zookeeper FC, it will release the lock and this will be acquired by the other Zookeeper FC and the Standby NN will become the Active NN.&lt;/P&gt;&lt;P&gt;   &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="58436-nnha.png" style="width: 435px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18287i7BE6C159D15C4125/image-size/medium?v=v2&amp;amp;px=400" role="button" title="58436-nnha.png" alt="58436-nnha.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 07:10:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-actually-namenode-HA-QJM-works/m-p/192551#M154619</guid>
      <dc:creator>khyati_redies</dc:creator>
      <dc:date>2019-08-18T07:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: How actually namenode HA QJM works?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-actually-namenode-HA-QJM-works/m-p/375927#M242704</link>
      <description>&lt;P&gt;Hello! Can the user send request to both standby and active name node? And if the name node fails to fulfill the request, standby namenode can replace the current active name node?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Sep 2023 02:45:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-actually-namenode-HA-QJM-works/m-p/375927#M242704</guid>
      <dc:creator>Ankita3087</dc:creator>
      <dc:date>2023-09-03T02:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: How actually namenode HA QJM works?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-actually-namenode-HA-QJM-works/m-p/375939#M242711</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/106798"&gt;@Ankita3087&lt;/a&gt;,&amp;nbsp;Welcome to Cloudera Community.&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.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2023 05:47:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-actually-namenode-HA-QJM-works/m-p/375939#M242711</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2023-09-04T05:47:36Z</dc:date>
    </item>
  </channel>
</rss>

