<?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: Renaming NameNode HA logical Name &amp;quot;dfs.nameservices&amp;quot; in an existing cluster in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Renaming-NameNode-HA-logical-Name-quot-dfs-nameservices-quot/m-p/97983#M11503</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/329/rmaruthiyodan.html" nodeid="329"&gt;@rmaruthiyodan&lt;/A&gt;, &lt;A rel="user" href="https://community.cloudera.com/users/113/jstraub.html" nodeid="113"&gt;@Jonas Straub&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Agreed! We might need to run hive metatool to update existing nameservice URI. &lt;/P&gt;</description>
    <pubDate>Sun, 13 Dec 2015 01:05:20 GMT</pubDate>
    <dc:creator>KuldeepK</dc:creator>
    <dc:date>2015-12-13T01:05:20Z</dc:date>
    <item>
      <title>Renaming NameNode HA logical Name "dfs.nameservices" in an existing cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Renaming-NameNode-HA-logical-Name-quot-dfs-nameservices-quot/m-p/97981#M11501</link>
      <description>&lt;P&gt;Is it supported to modify an existing cluster's NameNode logical name (dfs.nameservices) in an HA configuration ?&lt;/P&gt;&lt;P&gt;I was able to get dfs.nameservices renamed using the following steps, but I want to confirm if this could have some issues that I'm unaware of at this time. The steps involved re-creating the NN HA znode, re-initializing the shared edits for the journal node and performing the bootstrap again for the standby NameNode:&lt;/P&gt;&lt;P&gt;(run the commands as hdfs user) &lt;/P&gt;&lt;P&gt;1) Turn on safemode
$ hdfs dfsadmin -safemode enter 
Safe mode is ON in rm-hdp23n1.novalocal/172.25.17.33:8020 
Safe mode is ON in rm-hdp23n3.novalocal/172.25.16.71:8020 &lt;/P&gt;&lt;P&gt;2) Perform namenode checkpointing: &lt;/P&gt;&lt;P&gt;
$ hdfs dfsadmin -saveNamespace 
Save namespace successful for rm-hdp23n1.novalocal/172.25.17.33:8020 
Save namespace successful for rm-hdp23n3.novalocal/172.25.16.71:8020 &lt;/P&gt;&lt;P&gt;3) From Ambari stop all HDFS services.&lt;/P&gt;&lt;P&gt;4) Make the appropriate changes with the properties.&lt;/P&gt;&lt;P&gt;Update "fs.defaultFS" in core-file.xml, And then all the properties in hdfs-site.xml that are related to the HA servicename be modified. For instance, in my cluster I changed the following properties or their values: &lt;/P&gt;&lt;P&gt;"dfs.client.failover.proxy.provider.cluster456" : "org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider", &lt;/P&gt;&lt;P&gt;
"dfs.ha.namenodes.cluster456" : "nn1,nn2", &lt;/P&gt;&lt;P&gt;"dfs.namenode.http-address.cluster456.nn1" : "rm-hdp23n1.novalocal:50070", &lt;/P&gt;&lt;P&gt;
"dfs.namenode.http-address.cluster456.nn2" : "rm-hdp23n3.novalocal:50070", &lt;/P&gt;&lt;P&gt;
"dfs.namenode.https-address.cluster456.nn1" : "rm-hdp23n1.novalocal:50470", &lt;/P&gt;&lt;P&gt; 
"dfs.namenode.https-address.cluster456.nn2" : "rm-hdp23n3.novalocal:50470", &lt;/P&gt;&lt;P&gt;
"dfs.namenode.rpc-address.cluster456.nn1" : "rm-hdp23n1.novalocal:8020", &lt;/P&gt;&lt;P&gt;
"dfs.namenode.rpc-address.cluster456.nn2" : "rm-hdp23n3.novalocal:8020", &lt;/P&gt;&lt;P&gt;"dfs.namenode.shared.edits.dir" : "qjournal://rm-hdp23n2.novalocal:8485;rm-hdp23n3.novalocal:8485;rm-hdp23n1.novalocal:8485/cluster456", &lt;/P&gt;&lt;P&gt;
"dfs.nameservices" : "cluster456", &lt;/P&gt;&lt;P&gt;5) And then start only the journal nodes 
(With ZKFC and both NameNodes still in Stopped state) and re-initialize shared edits: &lt;/P&gt;&lt;P&gt;
$ hdfs namenode -initializeSharedEdits -force &lt;/P&gt;&lt;P&gt;6) initialize zk node for NN HA: 
hdfs zkfc -formatZK -force &lt;/P&gt;&lt;P&gt;7) And then start the NameNodes and zkfc on both the nodes. &lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2015 13:34:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Renaming-NameNode-HA-logical-Name-quot-dfs-nameservices-quot/m-p/97981#M11501</guid>
      <dc:creator>rmaruthiyodan</dc:creator>
      <dc:date>2015-12-07T13:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming NameNode HA logical Name "dfs.nameservices" in an existing cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Renaming-NameNode-HA-logical-Name-quot-dfs-nameservices-quot/m-p/97982#M11502</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/329/rmaruthiyodan.html" nodeid="329"&gt;@rmaruthiyodan&lt;/A&gt; the steps look fine to me. I actually had to do this myself recently (see this article &lt;A target="_blank" href="https://community.hortonworks.com/articles/4632/changing-dfsnameservices-value-after-hdfs-ha-has-b.html"&gt;https://community.hortonworks.com/articles/4632/changing-dfsnameservices-value-after-hdfs-ha-has-b.htm&lt;/A&gt;l). I didn't encounter any issues after changing the logical name. Just make sure you also update the Hive Metastore and I think if you use HBase there are some additional changes necessary.</description>
      <pubDate>Mon, 07 Dec 2015 13:39:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Renaming-NameNode-HA-logical-Name-quot-dfs-nameservices-quot/m-p/97982#M11502</guid>
      <dc:creator>jstraub</dc:creator>
      <dc:date>2015-12-07T13:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming NameNode HA logical Name "dfs.nameservices" in an existing cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Renaming-NameNode-HA-logical-Name-quot-dfs-nameservices-quot/m-p/97983#M11503</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/329/rmaruthiyodan.html" nodeid="329"&gt;@rmaruthiyodan&lt;/A&gt;, &lt;A rel="user" href="https://community.cloudera.com/users/113/jstraub.html" nodeid="113"&gt;@Jonas Straub&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Agreed! We might need to run hive metatool to update existing nameservice URI. &lt;/P&gt;</description>
      <pubDate>Sun, 13 Dec 2015 01:05:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Renaming-NameNode-HA-logical-Name-quot-dfs-nameservices-quot/m-p/97983#M11503</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2015-12-13T01:05:20Z</dc:date>
    </item>
  </channel>
</rss>

