HBASE-13086 Show ZK root node on Master WebUI

This commit is contained in:
Nick Dimiduk 2015-02-24 19:03:20 -08:00
parent 913ea2c222
commit c651271f57
2 changed files with 12 additions and 0 deletions

View File

@ -370,6 +370,13 @@ public class ZooKeeperWatcher implements Watcher, Abortable, Closeable {
return quorum;
}
/**
* @return the base znode of this zookeeper connection instance.
*/
public String getBaseZNode() {
return baseZNode;
}
/**
* Method called from ZooKeeper for events and connection status.
* <p>

View File

@ -254,6 +254,11 @@ AssignmentManager assignmentManager = master.getAssignmentManager();
<td> <% formatZKString() %> </td>
<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>