<?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 Ambari namenode HA connect in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-namenode-HA-connect/m-p/183794#M68004</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;After successfully enabling HA on a Ambari cluster, what address should we connect to in order to always use the active namenode?&lt;BR /&gt;&lt;BR /&gt;For example origionaly we connected to 'namenode01:8020' to drop files, but now there is namenode01 and namenode02.&lt;BR /&gt;&lt;BR /&gt;So we need to create a keepalived vip which checks '-getServiceState' every few seconds or something?&lt;/P&gt;&lt;P&gt;We currently use the following for connection: &lt;A href="https://github.com/colinmarc/hdfs" target="_blank"&gt;https://github.com/colinmarc/hdfs&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Sep 2017 13:23:47 GMT</pubDate>
    <dc:creator>stefan1</dc:creator>
    <dc:date>2017-09-14T13:23:47Z</dc:date>
    <item>
      <title>Ambari namenode HA connect</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-namenode-HA-connect/m-p/183794#M68004</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;After successfully enabling HA on a Ambari cluster, what address should we connect to in order to always use the active namenode?&lt;BR /&gt;&lt;BR /&gt;For example origionaly we connected to 'namenode01:8020' to drop files, but now there is namenode01 and namenode02.&lt;BR /&gt;&lt;BR /&gt;So we need to create a keepalived vip which checks '-getServiceState' every few seconds or something?&lt;/P&gt;&lt;P&gt;We currently use the following for connection: &lt;A href="https://github.com/colinmarc/hdfs" target="_blank"&gt;https://github.com/colinmarc/hdfs&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 13:23:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-namenode-HA-connect/m-p/183794#M68004</guid>
      <dc:creator>stefan1</dc:creator>
      <dc:date>2017-09-14T13:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari namenode HA connect</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-namenode-HA-connect/m-p/183795#M68005</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/39468/stefan1.html" nodeid="39468"&gt;@Stefan Warmerdam&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Usually whatever value you see in the "hdfs-site.xml"   for the property "dfs.nameservices"  and "fs.defaultFS" is used when HA is enabled.&lt;/P&gt;&lt;P&gt;You can also use the Ambari FileView  to upload files.  &lt;A href="https://docs.hortonworks.com/HDPDocuments/Ambari-2.5.2.0/bk_ambari-views/content/ch_using_files_view.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/Ambari-2.5.2.0/bk_ambari-views/content/ch_using_files_view.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 13:30:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-namenode-HA-connect/m-p/183795#M68005</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-09-14T13:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari namenode HA connect</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-namenode-HA-connect/m-p/183796#M68006</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/39468/stefan1.html" nodeid="39468"&gt;@Stefan Warmerdam&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Not sure about the client that you mentioned as part fo the github link.  But In case of a Java Client it determines it using nameservice name something like following:&lt;/P&gt;&lt;PRE&gt;    Configuration conf = new Configuration(false);
    conf.set("fs.defaultFS", "hdfs://nameservice1");
    conf.set("fs.default.name", conf.get("fs.defaultFS"));
    conf.set("dfs.nameservices","nameservice1");
    conf.set("dfs.ha.namenodes.nameservice1", "namenode1,namenode2");
    conf.set("dfs.namenode.rpc-address.nameservice1.namenode1","hadoopnamenode01:8020");
    conf.set("dfs.namenode.rpc-address.nameservice1.namenode2", "hadoopnamenode02:8020");
    conf.set("dfs.client.failover.proxy.provider.nameservice1","org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider");&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/39468/stefan1.html" nodeid="39468"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 13:37:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-namenode-HA-connect/m-p/183796#M68006</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-09-14T13:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari namenode HA connect</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-namenode-HA-connect/m-p/183797#M68007</link>
      <description>&lt;P&gt;thank you for your detailed answer!&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 14:19:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-namenode-HA-connect/m-p/183797#M68007</guid>
      <dc:creator>stefan1</dc:creator>
      <dc:date>2017-09-14T14:19:31Z</dc:date>
    </item>
  </channel>
</rss>

