<?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: Name Node services fail over in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Name-Node-services-fail-over/m-p/193675#M155735</link>
    <description>&lt;P&gt;Fount out that this is available in zkfc logs which will be present in the name node.&lt;/P&gt;&lt;P&gt;For some reason these logs are not present in my name node boxes, so probably I need to restart the ZKFC services.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kumar&lt;/P&gt;</description>
    <pubDate>Thu, 28 Sep 2017 20:55:25 GMT</pubDate>
    <dc:creator>kums</dc:creator>
    <dc:date>2017-09-28T20:55:25Z</dc:date>
    <item>
      <title>Name Node services fail over</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Name-Node-services-fail-over/m-p/193672#M155732</link>
      <description>&lt;P&gt;I need to know if there was any failover happened on name node services. Where can I get this information.&lt;/P&gt;&lt;P&gt;Is there any REST API ?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 23:07:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Name-Node-services-fail-over/m-p/193672#M155732</guid>
      <dc:creator>kums</dc:creator>
      <dc:date>2017-09-26T23:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: Name Node services fail over</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Name-Node-services-fail-over/m-p/193673#M155733</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11304/kumarveerappan.html" nodeid="11304"&gt;@Kumar Veerappan&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The Following kind of Ambari API call can show which NameNode is &lt;STRONG&gt;Active&lt;/STRONG&gt; and which one is &lt;STRONG&gt;StandBy&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Syntax:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;curl -iv -u admin:admin -H "X-Requested-By: ambari" -X GET  "http://$AMBARI_HOST:8080/api/v1/clusters/$CLUSTER_NAME/components/NAMENODE?ServiceComponentInfo/category=MASTER&amp;amp;fields=ServiceComponentInfo/service_name,host_components/metrics/dfs/FSNamesystem/HAState"&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;curl -iv -u admin:admin -H "X-Requested-By: ambari" -X GET  "http://amb25101.example.com:8080/api/v1/clusters/plain_ambari/components/NAMENODE?ServiceComponentInfo/category=MASTER&amp;amp;fields=ServiceComponentInfo/service_name,host_components/metrics/dfs/FSNamesystem/HAState"&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Example Output of the above call might look like:&lt;/P&gt;&lt;PRE&gt;{
  "href" : "http://amb25101.example.com:8080/api/v1/clusters/plain_ambari/components/NAMENODE?ServiceComponentInfo/category=MASTER&amp;amp;fields=ServiceComponentInfo/service_name,host_components/metrics/dfs/FSNamesystem/HAState",
  "ServiceComponentInfo" : {
    "category" : "MASTER",
    "cluster_name" : "plain_ambari",
    "component_name" : "NAMENODE",
    "service_name" : "HDFS"
  },
  "host_components" : [
    {
      "href" : "http://amb25101.example.com:8080/api/v1/clusters/plain_ambari/hosts/amb25101.example.com/host_components/NAMENODE",
      "HostRoles" : {
        "cluster_name" : "plain_ambari",
        "component_name" : "NAMENODE",
        "host_name" : "amb25101.example.com"
      },
      "metrics" : {
        "dfs" : {
          "FSNamesystem" : {
            "HAState" : "active"
          }
        }
      }
    },
    {
      "href" : "http://amb25101.example.com:8080/api/v1/clusters/plain_ambari/hosts/amb25102.example.com/host_components/NAMENODE",
      "HostRoles" : {
        "cluster_name" : "plain_ambari",
        "component_name" : "NAMENODE",
        "host_name" : "amb25102.example.com"
      },
      "metrics" : {
        "dfs" : {
          "FSNamesystem" : {
            "HAState" : "standby"
          }
        }
      }
    }
  ]
* Connection #0 to host amb25101.example.com left intact
}&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 23:43:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Name-Node-services-fail-over/m-p/193673#M155733</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-09-26T23:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Name Node services fail over</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Name-Node-services-fail-over/m-p/193674#M155734</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11304/kumarveerappan.html" nodeid="11304"&gt;@Kumar Veerappan&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You will have to create an watcher/alert scripts that identifies which NN is active and alert/email if NN flips. &lt;/P&gt;&lt;P&gt;Namenode service provides JMX which has information on which NameNode is active. Your watcher script can query this data to identify if NN failovers.&lt;/P&gt;&lt;PRE&gt;name" : "Hadoop:service=NameNode,name=NameNodeStatus",
    "modelerType" : "org.apache.hadoop.hdfs.server.namenode.NameNode",
    "State" : "active",
    "NNRole" : "NameNode",
    "HostAndPort" : "host1:8020&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Sep 2017 08:12:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Name-Node-services-fail-over/m-p/193674#M155734</guid>
      <dc:creator>PranayV</dc:creator>
      <dc:date>2017-09-27T08:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Name Node services fail over</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Name-Node-services-fail-over/m-p/193675#M155735</link>
      <description>&lt;P&gt;Fount out that this is available in zkfc logs which will be present in the name node.&lt;/P&gt;&lt;P&gt;For some reason these logs are not present in my name node boxes, so probably I need to restart the ZKFC services.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kumar&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2017 20:55:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Name-Node-services-fail-over/m-p/193675#M155735</guid>
      <dc:creator>kums</dc:creator>
      <dc:date>2017-09-28T20:55:25Z</dc:date>
    </item>
  </channel>
</rss>

