<?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: What's the difference of -bootstrapstandby and -rollback for NameNode in HDFS rolling upgrade? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-s-the-difference-of-bootstrapstandby-and-rollback-for/m-p/152759#M32706</link>
    <description>&lt;P&gt;bootstrapStandby means data from name node1 will be maitained in nam node 2 a well and eventually it picksup as main name node&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jun 2016 05:09:53 GMT</pubDate>
    <dc:creator>gitampics</dc:creator>
    <dc:date>2016-06-24T05:09:53Z</dc:date>
    <item>
      <title>What's the difference of -bootstrapstandby and -rollback for NameNode in HDFS rolling upgrade?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-s-the-difference-of-bootstrapstandby-and-rollback-for/m-p/152756#M32703</link>
      <description>&lt;P&gt;In HDFS documentation, it said the steps to do rollback of rolling upgrade:&lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;Shutdown all &lt;EM&gt;NNs&lt;/EM&gt; and &lt;EM&gt;DNs&lt;/EM&gt;.&lt;/LI&gt;&lt;LI&gt;Restore the pre-upgrade release in all machines.&lt;/LI&gt;&lt;LI&gt;Start &lt;EM&gt;NN1&lt;/EM&gt; as Active with the "&lt;A href="http://hadoop.apache.org/docs/r2.7.1/hadoop-project-dist/hadoop-hdfs/HdfsRollingUpgrade.html#namenode_-rollingUpgrade"&gt;-rollingUpgrade rollback&lt;/A&gt;" option.&lt;/LI&gt;&lt;LI&gt;Run `-bootstrapStandby' on NN2 and start it normally as standby.&lt;/LI&gt;&lt;LI&gt;Start &lt;EM&gt;DNs&lt;/EM&gt; with the "-rollback" option.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Why do both NameNodes have different option? E.g. for NN1, &lt;A href="http://hadoop.apache.org/docs/r2.7.1/hadoop-project-dist/hadoop-hdfs/HdfsRollingUpgrade.html#namenode_-rollingUpgrade"&gt;-rollingUpgrade rollback&lt;/A&gt;, AND for NN2, '-bootstrapStandby' instead must be used.&lt;/P&gt;&lt;P&gt;What's the difference of '-bootstrapstandby' and '-rollback'?&lt;/P&gt;&lt;P&gt;In addition, it's expected to explain what happened behind hoods if any of the two is specified.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2016 07:02:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-s-the-difference-of-bootstrapstandby-and-rollback-for/m-p/152756#M32703</guid>
      <dc:creator>xzhou</dc:creator>
      <dc:date>2016-06-23T07:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: What's the difference of -bootstrapstandby and -rollback for NameNode in HDFS rolling upgrade?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-s-the-difference-of-bootstrapstandby-and-rollback-for/m-p/152757#M32704</link>
      <description>&lt;UL&gt;
&lt;LI&gt;"rollingUpgarde rollback" on NN1 means that both hdfs software and data in hdfs will be reverted back to the state before starting the rolling upgrade. Any changes to hdfs (files added to or deleted) will be lost. NN1 will become active NN.&lt;/LI&gt;&lt;LI&gt;"bootstrapStandby" on NN2 means that metadata from NN1 will be copied to NN2. After startup NN2 will become Stand by NN.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;What happens behind the stage: when you start the rolling upgrade with "rollingUpgrade prepare" a copy of NN metadata (FSImage) is created, called "previous". It consists of hard links to the "current" FSImage. When you do "rollingUpgrade rollback", "current" FSImage is replaced by "previous", that's why all hdfs changes are lost. If you want to keep the changes you can use "rollingUpgrade downgrade", it will downgrade only software, keeping hdfs image intact. You can find more details &lt;A href="https://hadoop.apache.org/docs/r2.7.1/hadoop-project-dist/hadoop-hdfs/HdfsRollingUpgrade.html"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2016 08:00:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-s-the-difference-of-bootstrapstandby-and-rollback-for/m-p/152757#M32704</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2016-06-23T08:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: What's the difference of -bootstrapstandby and -rollback for NameNode in HDFS rolling upgrade?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-s-the-difference-of-bootstrapstandby-and-rollback-for/m-p/152758#M32705</link>
      <description>&lt;P&gt;To explain why you use different commands for the two nodes:&lt;/P&gt;&lt;P&gt;The idea here is that you don't want both nodes to attempt the rollback and risk becoming inconsistent. In a perfect world you could probably do the rollback on both, but the world isn't perfect. &lt;/P&gt;&lt;P&gt;The best way to guarantee consistency is to have one node do the rollback and then rebootstrap the second node to the first (i.e. overwrite node 2's state information with that from the rolled back node 1).&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2016 02:13:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-s-the-difference-of-bootstrapstandby-and-rollback-for/m-p/152758#M32705</guid>
      <dc:creator>ewalk</dc:creator>
      <dc:date>2016-06-24T02:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: What's the difference of -bootstrapstandby and -rollback for NameNode in HDFS rolling upgrade?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-s-the-difference-of-bootstrapstandby-and-rollback-for/m-p/152759#M32706</link>
      <description>&lt;P&gt;bootstrapStandby means data from name node1 will be maitained in nam node 2 a well and eventually it picksup as main name node&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2016 05:09:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-s-the-difference-of-bootstrapstandby-and-rollback-for/m-p/152759#M32706</guid>
      <dc:creator>gitampics</dc:creator>
      <dc:date>2016-06-24T05:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: What's the difference of -bootstrapstandby and -rollback for NameNode in HDFS rolling upgrade?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-s-the-difference-of-bootstrapstandby-and-rollback-for/m-p/152760#M32707</link>
      <description>&lt;P&gt;Thank you all for the comments.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2016 03:54:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-s-the-difference-of-bootstrapstandby-and-rollback-for/m-p/152760#M32707</guid>
      <dc:creator>xzhou</dc:creator>
      <dc:date>2016-07-08T03:54:08Z</dc:date>
    </item>
  </channel>
</rss>

