<?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 do I change namenode and datanode dir for an existing NameNode HA Cluster in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-do-I-change-namenode-and-datanode-dir-for-an-existing/m-p/163178#M36807</link>
    <description>&lt;P&gt;I was doing this from Ambari, after changing the directories namenode would not come up and starting complaining about namenode dir is not formated. Should I format the dir at the namenode machines ?&lt;/P&gt;</description>
    <pubDate>Thu, 04 Aug 2016 12:08:33 GMT</pubDate>
    <dc:creator>sgowda</dc:creator>
    <dc:date>2016-08-04T12:08:33Z</dc:date>
    <item>
      <title>how do I change namenode and datanode dir for an existing NameNode HA Cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-do-I-change-namenode-and-datanode-dir-for-an-existing/m-p/163174#M36803</link>
      <description>&lt;P&gt;Currently I have an existing cluster with Namenode HA -- I want to change the dfs.namenode.name.dir and dfs.datanode.data.dir to different from what is currently configured. &lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 21:14:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-do-I-change-namenode-and-datanode-dir-for-an-existing/m-p/163174#M36803</guid>
      <dc:creator>sgowda</dc:creator>
      <dc:date>2016-08-03T21:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: how do I change namenode and datanode dir for an existing NameNode HA Cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-do-I-change-namenode-and-datanode-dir-for-an-existing/m-p/163175#M36804</link>
      <description>&lt;P&gt;Best way to change dfs.datanode.data.dir is to decommission the datanode, change the value and add it back. This would avoid directly access files and moving them. You could move the contents from directory to another (without decommission) but not recommended. &lt;/P&gt;&lt;P&gt;For namenode metadata directories, you can change this value and restart standby NN first. Once Standby NN comes back (and it will start using new directory), then restart active NN. It picks the new directory on restart as well. Once both NNs are up, you can clear the contents of the older metadata directories. &lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 21:36:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-do-I-change-namenode-and-datanode-dir-for-an-existing/m-p/163175#M36804</guid>
      <dc:creator>ravi1</dc:creator>
      <dc:date>2016-08-03T21:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: how do I change namenode and datanode dir for an existing NameNode HA Cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-do-I-change-namenode-and-datanode-dir-for-an-existing/m-p/163176#M36805</link>
      <description>&lt;P&gt;Are you just mounting volumes at a new location?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2016 06:13:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-do-I-change-namenode-and-datanode-dir-for-an-existing/m-p/163176#M36805</guid>
      <dc:creator>ArpitAgarwal</dc:creator>
      <dc:date>2016-08-04T06:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: how do I change namenode and datanode dir for an existing NameNode HA Cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-do-I-change-namenode-and-datanode-dir-for-an-existing/m-p/163177#M36806</link>
      <description>&lt;P style="margin-left: 20px;"&gt;&lt;A rel="user" href="https://community.cloudera.com/users/126/aagarwal.html" nodeid="126"&gt;@Arpit Agarwal&lt;/A&gt; yes correct &lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2016 12:05:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-do-I-change-namenode-and-datanode-dir-for-an-existing/m-p/163177#M36806</guid>
      <dc:creator>sgowda</dc:creator>
      <dc:date>2016-08-04T12:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: how do I change namenode and datanode dir for an existing NameNode HA Cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-do-I-change-namenode-and-datanode-dir-for-an-existing/m-p/163178#M36807</link>
      <description>&lt;P&gt;I was doing this from Ambari, after changing the directories namenode would not come up and starting complaining about namenode dir is not formated. Should I format the dir at the namenode machines ?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2016 12:08:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-do-I-change-namenode-and-datanode-dir-for-an-existing/m-p/163178#M36807</guid>
      <dc:creator>sgowda</dc:creator>
      <dc:date>2016-08-04T12:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: how do I change namenode and datanode dir for an existing NameNode HA Cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-do-I-change-namenode-and-datanode-dir-for-an-existing/m-p/163179#M36808</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10616/sgowda.html" nodeid="10616"&gt;@sgowda&lt;/A&gt;, thanks for confirming you just want to mount volumes at a new location. If you are just remounting then your existing HDFS metadata and data files will be present but under new Linux paths. &lt;/P&gt;&lt;P&gt;In that case decommissioning is not necessary. You just need to to update NameNode and DataNode configuration settings like dfs.namenode.name.dir, dfs.datanode.data.dir to point to the new locations. See &lt;A href="http://hortonworks.com/blog/hdfs-metadata-directories-explained/"&gt;this link&lt;/A&gt; for a full list of settings, not all may apply to you. Don't reformat the NN else you will lose all your data.&lt;/P&gt;&lt;P&gt;The simplest approach is:&lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;Take a full cluster downtime and bring down all HDFS services.&lt;/LI&gt;&lt;LI&gt;Remount volumes at the new location on all affected nodes.&lt;/LI&gt;&lt;LI&gt;Update NN and DN configurations via Ambari to point to the new storage roots.&lt;/LI&gt;&lt;LI&gt;Restart services.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;If you are not familiar with these settings I recommend learning more about HDFS first since its easy to lose data via administrative mistakes.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2016 04:33:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-do-I-change-namenode-and-datanode-dir-for-an-existing/m-p/163179#M36808</guid>
      <dc:creator>ArpitAgarwal</dc:creator>
      <dc:date>2016-08-05T04:33:11Z</dc:date>
    </item>
  </channel>
</rss>

