hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndimi...@apache.org
Subject hbase git commit: HBASE-13086 Show ZK root node on Master WebUI
Date Wed, 25 Feb 2015 03:08:56 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 9e9a98fdb -> 9446b2cc7


HBASE-13086 Show ZK root node on Master WebUI


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/9446b2cc
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/9446b2cc
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/9446b2cc

Branch: refs/heads/branch-1
Commit: 9446b2cc7eee9f140bdf919179fe9738c535f1a5
Parents: 9e9a98f
Author: Nick Dimiduk <ndimiduk@apache.org>
Authored: Tue Feb 24 19:03:20 2015 -0800
Committer: Nick Dimiduk <ndimiduk@apache.org>
Committed: Tue Feb 24 19:05:19 2015 -0800

----------------------------------------------------------------------
 .../org/apache/hadoop/hbase/zookeeper/ZooKeeperWatcher.java   | 7 +++++++
 .../apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon    | 5 +++++
 2 files changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/9446b2cc/hbase-client/src/main/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperWatcher.java
----------------------------------------------------------------------
diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperWatcher.java
b/hbase-client/src/main/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperWatcher.java
index d47dc3e..64e6e24 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperWatcher.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperWatcher.java
@@ -384,6 +384,13 @@ public class ZooKeeperWatcher implements Watcher, Abortable, Closeable
{
   }
 
   /**
+   * @return the base znode of this zookeeper connection instance.
+   */
+  public String getBaseZNode() {
+    return baseZNode;
+  }
+
+  /**
    * Method called from ZooKeeper for events and connection status.
    * <p>
    * Valid events are passed along to listeners.  Connection status changes

http://git-wip-us.apache.org/repos/asf/hbase/blob/9446b2cc/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon
b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon
index c83f295..ceda843 100644
--- a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon
+++ b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon
@@ -255,6 +255,11 @@ AssignmentManager assignmentManager = master.getAssignmentManager();
                     <td>Addresses of all registered ZK servers. For more, see <a
href="/zk.jsp">zk dump</a>.</td>
                 </tr>
                 <tr>
+                    <td>Zookeeper Base Path</td>
+                    <td> <% master.getZooKeeper().getBaseZNode() %></td>
+                    <td>Root node of this cluster in ZK.</td>
+                </tr>
+                <tr>
                     <td>HBase Root Directory</td>
                     <td><% FSUtils.getRootDir(master.getConfiguration()).toString()
%></td>
                     <td>Location of HBase home directory</td>


Mime
View raw message