HBASE-13086 Show ZK root node on Master WebUI
This commit is contained in:
parent
913ea2c222
commit
c651271f57
|
@ -370,6 +370,13 @@ public class ZooKeeperWatcher implements Watcher, Abortable, Closeable {
|
||||||
return quorum;
|
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.
|
* Method called from ZooKeeper for events and connection status.
|
||||||
* <p>
|
* <p>
|
||||||
|
|
|
@ -254,6 +254,11 @@ AssignmentManager assignmentManager = master.getAssignmentManager();
|
||||||
<td> <% formatZKString() %> </td>
|
<td> <% formatZKString() %> </td>
|
||||||
<td>Addresses of all registered ZK servers. For more, see <a href="/zk.jsp">zk dump</a>.</td>
|
<td>Addresses of all registered ZK servers. For more, see <a href="/zk.jsp">zk dump</a>.</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Zookeeper Base Path</td>
|
||||||
|
<td> <% master.getZooKeeper().getBaseZNode() %></td>
|
||||||
|
<td>Root node of this cluster in ZK.</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>HBase Root Directory</td>
|
<td>HBase Root Directory</td>
|
||||||
<td><% FSUtils.getRootDir(master.getConfiguration()).toString() %></td>
|
<td><% FSUtils.getRootDir(master.getConfiguration()).toString() %></td>
|
||||||
|
|
Loading…
Reference in New Issue