<?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 How to fetch active HBase Master node via zkCli command ? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-fetch-active-HBase-Master-node-via-zkCli-command/m-p/144914#M32273</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to get the current active HBaseMaster from Zookeeper under znode /hbase-secure/master via zkCli.sh commandline call.&lt;/P&gt;&lt;P&gt;The output is almost fine, but the nodename is somehow screwed up, so that I cannot use it for comparisons later on =&amp;gt;&lt;/P&gt;&lt;PRE&gt;#&amp;gt;/usr/hdp/current/zookeeper-client/bin/zkCli.sh -server 01876.something.corp,01874.something.corp,02878.something.corp get /hbase-secure/master
Connecting to 01876.something.corp,01874.something.corp,02878.something.corp
WATCHER::
WatchedEvent state:SyncConnected type:None path:null
WATCHER::
WatchedEvent state:SaslAuthenticated type:None path:null
�master:16000��O�;��PBUF
'
2878.something.corp�}�����*�}
cZxid = 0x6a00019c8a
ctime = Fri Jun 17 14:59:21 CEST 2016
mZxid = 0x6a00019c8a
mtime = Fri Jun 17 14:59:21 CEST 2016
pZxid = 0x6a00019c8a
cversion = 0
dataVersion = 0
aclVersion = 0
ephemeralOwner = 0x1555727df0a001c
dataLength = 75
numChildren = 0&lt;/PRE&gt;&lt;P&gt;Any hint how to get the correct nodename of the current active HBase Master via commandline ?!?!&lt;/P&gt;&lt;P&gt;Thanks, Gerd&lt;/P&gt;&lt;P&gt;=============&lt;/P&gt;&lt;P&gt;HDP 2.3.4.7, HBase HA , kerberized&lt;/P&gt;</description>
    <pubDate>Fri, 17 Jun 2016 20:35:44 GMT</pubDate>
    <dc:creator>geko</dc:creator>
    <dc:date>2016-06-17T20:35:44Z</dc:date>
    <item>
      <title>How to fetch active HBase Master node via zkCli command ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-fetch-active-HBase-Master-node-via-zkCli-command/m-p/144914#M32273</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to get the current active HBaseMaster from Zookeeper under znode /hbase-secure/master via zkCli.sh commandline call.&lt;/P&gt;&lt;P&gt;The output is almost fine, but the nodename is somehow screwed up, so that I cannot use it for comparisons later on =&amp;gt;&lt;/P&gt;&lt;PRE&gt;#&amp;gt;/usr/hdp/current/zookeeper-client/bin/zkCli.sh -server 01876.something.corp,01874.something.corp,02878.something.corp get /hbase-secure/master
Connecting to 01876.something.corp,01874.something.corp,02878.something.corp
WATCHER::
WatchedEvent state:SyncConnected type:None path:null
WATCHER::
WatchedEvent state:SaslAuthenticated type:None path:null
�master:16000��O�;��PBUF
'
2878.something.corp�}�����*�}
cZxid = 0x6a00019c8a
ctime = Fri Jun 17 14:59:21 CEST 2016
mZxid = 0x6a00019c8a
mtime = Fri Jun 17 14:59:21 CEST 2016
pZxid = 0x6a00019c8a
cversion = 0
dataVersion = 0
aclVersion = 0
ephemeralOwner = 0x1555727df0a001c
dataLength = 75
numChildren = 0&lt;/PRE&gt;&lt;P&gt;Any hint how to get the correct nodename of the current active HBase Master via commandline ?!?!&lt;/P&gt;&lt;P&gt;Thanks, Gerd&lt;/P&gt;&lt;P&gt;=============&lt;/P&gt;&lt;P&gt;HDP 2.3.4.7, HBase HA , kerberized&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2016 20:35:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-fetch-active-HBase-Master-node-via-zkCli-command/m-p/144914#M32273</guid>
      <dc:creator>geko</dc:creator>
      <dc:date>2016-06-17T20:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch active HBase Master node via zkCli command ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-fetch-active-HBase-Master-node-via-zkCli-command/m-p/144915#M32274</link>
      <description>&lt;P&gt;Hi Gerd,&lt;/P&gt;&lt;P&gt;You found the right ZNode used for having one and only one active HBase master at one time. The reason it's "screwed" up is that you're actually seeing a serialized data structure. The contents of that znode is a serialized instance of the org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.Master protocol buffer class.&lt;/P&gt;&lt;P&gt;I'm not seeing anything in the HBase shell yet which would be helpful.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2016 21:14:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-fetch-active-HBase-Master-node-via-zkCli-command/m-p/144915#M32274</guid>
      <dc:creator>elserj</dc:creator>
      <dc:date>2016-06-17T21:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch active HBase Master node via zkCli command ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-fetch-active-HBase-Master-node-via-zkCli-command/m-p/144916#M32275</link>
      <description>&lt;P&gt;Actually, looks like we might bundle a script you can call for this:&lt;/P&gt;&lt;PRE&gt;/usr/hdp/current/hbase-client/bin/hbase-jruby /usr/hdp/current/hbase-client/bin/get-active-master.rb&lt;/PRE&gt;&lt;P&gt;Not sure what the availability of this script is across older versions of HDP.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2016 21:39:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-fetch-active-HBase-Master-node-via-zkCli-command/m-p/144916#M32275</guid>
      <dc:creator>elserj</dc:creator>
      <dc:date>2016-06-17T21:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch active HBase Master node via zkCli command ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-fetch-active-HBase-Master-node-via-zkCli-command/m-p/144917#M32276</link>
      <description>&lt;P&gt;
	In newer versions of the HBase, you can use &lt;/P&gt;&lt;PRE&gt;	status 'detailed'&lt;/PRE&gt;&lt;P&gt;
	which will print the active master, backup masters as well as regionservers. &lt;/P&gt;</description>
      <pubDate>Sat, 18 Jun 2016 00:45:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-fetch-active-HBase-Master-node-via-zkCli-command/m-p/144917#M32276</guid>
      <dc:creator>Enis</dc:creator>
      <dc:date>2016-06-18T00:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch active HBase Master node via zkCli command ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-fetch-active-HBase-Master-node-via-zkCli-command/m-p/144918#M32277</link>
      <description>&lt;P&gt;Many thanks for the xplanation &lt;A rel="user" href="https://community.cloudera.com/users/223/jelser.html" nodeid="223"&gt;@Josh Elser&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I'll use status 'detailed' + some grep'ing around as mentioned by &lt;A rel="user" href="https://community.cloudera.com/users/372/enis.html" nodeid="372"&gt;@Enis&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jun 2016 01:47:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-fetch-active-HBase-Master-node-via-zkCli-command/m-p/144918#M32277</guid>
      <dc:creator>geko</dc:creator>
      <dc:date>2016-06-18T01:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch active HBase Master node via zkCli command ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-fetch-active-HBase-Master-node-via-zkCli-command/m-p/144919#M32278</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/372/enis.html" nodeid="372"&gt;@Enis&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;thanks for this hint.
I'll use that in a way like&lt;/P&gt;&lt;PRE&gt;echo "status 'detailed'" &amp;gt;hbase.command
echo "exit" &amp;gt;&amp;gt; hbase.command
hbase shell -n hbase.command
=&amp;gt; and then further process the output with bash builtins&lt;/PRE&gt;&lt;P&gt;Thanks, Gerd&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jun 2016 01:50:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-fetch-active-HBase-Master-node-via-zkCli-command/m-p/144919#M32278</guid>
      <dc:creator>geko</dc:creator>
      <dc:date>2016-06-18T01:50:14Z</dc:date>
    </item>
  </channel>
</rss>

