HBASE-26000 Optimize the display of ZK dump in the master web UI (#3383)
Signed-off-by: Wellington Chevreuil <wchevreuil@apache.org> Signed-off-by: Duo Zhang <zhangduo@apache.org>
This commit is contained in:
parent
4719a2078e
commit
a238e79e0f
|
@ -1845,7 +1845,7 @@ public final class ZKUtil {
|
|||
sb.append("HBase is rooted at ").append(zkw.getZNodePaths().baseZNode);
|
||||
sb.append("\nActive master address: ");
|
||||
try {
|
||||
sb.append(MasterAddressTracker.getMasterAddress(zkw));
|
||||
sb.append("\n ").append(MasterAddressTracker.getMasterAddress(zkw));
|
||||
} catch (IOException e) {
|
||||
sb.append("<<FAILED LOOKUP: " + e.getMessage() + ">>");
|
||||
}
|
||||
|
@ -1857,12 +1857,12 @@ public final class ZKUtil {
|
|||
sb.append("\n ").append(child);
|
||||
}
|
||||
}
|
||||
sb.append("\nRegion server holding hbase:meta: "
|
||||
+ MetaTableLocator.getMetaRegionLocation(zkw));
|
||||
sb.append("\nRegion server holding hbase:meta:");
|
||||
sb.append("\n ").append(MetaTableLocator.getMetaRegionLocation(zkw));
|
||||
int numMetaReplicas = zkw.getMetaReplicaNodes().size();
|
||||
for (int i = 1; i < numMetaReplicas; i++) {
|
||||
sb.append("\nRegion server holding hbase:meta, replicaId " + i + " "
|
||||
+ MetaTableLocator.getMetaRegionLocation(zkw, i));
|
||||
sb.append("\n replica" + i + ": "
|
||||
+ MetaTableLocator.getMetaRegionLocation(zkw, i));
|
||||
}
|
||||
sb.append("\nRegion servers:");
|
||||
final List<String> rsChildrenNoWatchList =
|
||||
|
|
Loading…
Reference in New Issue