<?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 to do a cluster failover from active namenode to standby namenode from Ambari console? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-do-a-cluster-failover-from-active-namenode-to-standby/m-p/154297#M36230</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10949/muthukumarsiva.html" nodeid="10949"&gt;@Muthukumar S&lt;/A&gt; The cluster failover is automatically done by ambari. If you want to make your standby namenode the active one, you can stop the current active namenode (ensuring the current standby namenode is alive) and the current standby namenode will take over as the active namenode. &lt;/P&gt;&lt;P&gt;See also : &lt;A href="https://hadoop.apache.org/docs/r2.7.2/hadoop-project-dist/hadoop-hdfs/HDFSHighAvailabilityWithNFS.html#Automatic_Failover" target="_blank"&gt;https://hadoop.apache.org/docs/r2.7.2/hadoop-project-dist/hadoop-hdfs/HDFSHighAvailabilityWithNFS.html#Automatic_Failover&lt;/A&gt;&lt;/P&gt;&lt;P&gt;To manually change it check : &lt;A href="https://hadoop.apache.org/docs/r2.7.2/hadoop-project-dist/hadoop-hdfs/HDFSHighAvailabilityWithNFS.html#Administrative_commands" target="_blank"&gt;https://hadoop.apache.org/docs/r2.7.2/hadoop-project-dist/hadoop-hdfs/HDFSHighAvailabilityWithNFS.html#Administrative_commands&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jul 2016 16:30:32 GMT</pubDate>
    <dc:creator>sbhat</dc:creator>
    <dc:date>2016-07-28T16:30:32Z</dc:date>
    <item>
      <title>How to do a cluster failover from active namenode to standby namenode from Ambari console?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-do-a-cluster-failover-from-active-namenode-to-standby/m-p/154296#M36229</link>
      <description>&lt;P&gt;HI &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to do a cluster failover from active namenode to standby namenode from Ambari console?&lt;/P&gt;&lt;P&gt;Could someone please help with the exact steps to be done?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 16:19:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-do-a-cluster-failover-from-active-namenode-to-standby/m-p/154296#M36229</guid>
      <dc:creator>muthukumar_siva</dc:creator>
      <dc:date>2016-07-28T16:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a cluster failover from active namenode to standby namenode from Ambari console?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-do-a-cluster-failover-from-active-namenode-to-standby/m-p/154297#M36230</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10949/muthukumarsiva.html" nodeid="10949"&gt;@Muthukumar S&lt;/A&gt; The cluster failover is automatically done by ambari. If you want to make your standby namenode the active one, you can stop the current active namenode (ensuring the current standby namenode is alive) and the current standby namenode will take over as the active namenode. &lt;/P&gt;&lt;P&gt;See also : &lt;A href="https://hadoop.apache.org/docs/r2.7.2/hadoop-project-dist/hadoop-hdfs/HDFSHighAvailabilityWithNFS.html#Automatic_Failover" target="_blank"&gt;https://hadoop.apache.org/docs/r2.7.2/hadoop-project-dist/hadoop-hdfs/HDFSHighAvailabilityWithNFS.html#Automatic_Failover&lt;/A&gt;&lt;/P&gt;&lt;P&gt;To manually change it check : &lt;A href="https://hadoop.apache.org/docs/r2.7.2/hadoop-project-dist/hadoop-hdfs/HDFSHighAvailabilityWithNFS.html#Administrative_commands" target="_blank"&gt;https://hadoop.apache.org/docs/r2.7.2/hadoop-project-dist/hadoop-hdfs/HDFSHighAvailabilityWithNFS.html#Administrative_commands&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 16:30:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-do-a-cluster-failover-from-active-namenode-to-standby/m-p/154297#M36230</guid>
      <dc:creator>sbhat</dc:creator>
      <dc:date>2016-07-28T16:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a cluster failover from active namenode to standby namenode from Ambari console?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-do-a-cluster-failover-from-active-namenode-to-standby/m-p/154298#M36231</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1902/sbhat.html" nodeid="1902"&gt;@sbhat&lt;/A&gt;  Thank you will try and let you know, once i bring down active name node service, standby which is active will become active namenode. After that if I start the name node service on the one where is stopped will be become standby? Also do I need to do any manual steps like making active name node is safe mode and run savenamespace and then stop the service? or putting into maintenance mode the active name node will take care of this?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 16:30:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-do-a-cluster-failover-from-active-namenode-to-standby/m-p/154298#M36231</guid>
      <dc:creator>muthukumar_siva</dc:creator>
      <dc:date>2016-07-28T16:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a cluster failover from active namenode to standby namenode from Ambari console?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-do-a-cluster-failover-from-active-namenode-to-standby/m-p/154299#M36232</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10949/muthukumarsiva.html" nodeid="10949"&gt;@Muthukumar S&lt;/A&gt; Yes. That is correct. You will not have to do all of that. HDFS is built to be fault tolerant. So it should work seemlessly. But I would still prefer the second method if it is a production box. Do update your findings and upvote the answer if it works. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 16:38:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-do-a-cluster-failover-from-active-namenode-to-standby/m-p/154299#M36232</guid>
      <dc:creator>sbhat</dc:creator>
      <dc:date>2016-07-28T16:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a cluster failover from active namenode to standby namenode from Ambari console?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-do-a-cluster-failover-from-active-namenode-to-standby/m-p/154300#M36233</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/10949/muthukumarsiva.html" nodeid="10949"&gt;@Muthukumar S&lt;/A&gt;&lt;P&gt;In addition to &lt;A rel="user" href="https://community.cloudera.com/users/1902/sbhat.html" nodeid="1902"&gt;@sbhat&lt;/A&gt; yes ambari will take care of failover, but if you intend to do the failover manually using cli the  you can check for below command -&lt;/P&gt;&lt;P&gt;[hdfs@test ~]$ hdfs haadmin &lt;/P&gt;&lt;P&gt;Usage: haadmin&lt;/P&gt;&lt;P&gt;    [-transitionToActive [--forceactive] &amp;lt;serviceId&amp;gt;]&lt;/P&gt;&lt;P&gt;    [-transitionToStandby &amp;lt;serviceId&amp;gt;]&lt;/P&gt;&lt;P&gt;    [-failover [--forcefence] [--forceactive] &amp;lt;serviceId&amp;gt; &amp;lt;serviceId&amp;gt;]&lt;/P&gt;&lt;P&gt;    [-getServiceState &amp;lt;serviceId&amp;gt;]&lt;/P&gt;&lt;P&gt;    [-checkHealth &amp;lt;serviceId&amp;gt;]&lt;/P&gt;&lt;P&gt;    [-help &amp;lt;command&amp;gt;]&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 17:57:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-do-a-cluster-failover-from-active-namenode-to-standby/m-p/154300#M36233</guid>
      <dc:creator>sshimpi</dc:creator>
      <dc:date>2016-07-28T17:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a cluster failover from active namenode to standby namenode from Ambari console?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-do-a-cluster-failover-from-active-namenode-to-standby/m-p/154301#M36234</link>
      <description>&lt;P&gt;If you have setup automatic failover with ZooKeeper Failover Controllers then the ZKFC processes will automatically transition the Standby NN to Active status if the current active is unresponsive. The decision about which NN should be made active is taken by the ZKFC instances (coordinating via ZooKeeper). Ambari does not decide which NN should be active.&lt;/P&gt;&lt;P&gt;If you wish to perform a manual failover then you can use the &lt;EM&gt;hdfs dfsadmin&lt;/EM&gt; command as &lt;A rel="user" href="https://community.cloudera.com/users/2648/sshimpi.html" nodeid="2648"&gt;@Sagar Shimpi&lt;/A&gt; suggested.&lt;/P&gt;&lt;P&gt;Both alternatives are described in the HDP documentation:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.4.2/bk_hadoop-ha/content/ha-nn-deploy-nn-cluster.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.4.2/bk_hadoop-ha/content/ha-nn-deploy-nn-cluster.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.4.2/bk_hadoop-ha/content/nn-ha-auto-failover.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.4.2/bk_hadoop-ha/content/nn-ha-auto-failover.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you want to better understand the internals of automatic NN failover (recommended if you are administering a Hadoop cluster with HA), I recommend reading the Apache docs, specifically the section on &lt;EM&gt;Automatic Failover&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;A href="https://hadoop.apache.org/docs/r2.7.2/hadoop-project-dist/hadoop-hdfs/HDFSHighAvailabilityWithQJM.html" target="_blank"&gt;https://hadoop.apache.org/docs/r2.7.2/hadoop-project-dist/hadoop-hdfs/HDFSHighAvailabilityWithQJM.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 03:16:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-do-a-cluster-failover-from-active-namenode-to-standby/m-p/154301#M36234</guid>
      <dc:creator>ArpitAgarwal</dc:creator>
      <dc:date>2016-08-02T03:16:44Z</dc:date>
    </item>
  </channel>
</rss>

