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
8f618a0846
commit
555f8b461f
|
@ -1845,7 +1845,7 @@ public final class ZKUtil {
|
||||||
sb.append("HBase is rooted at ").append(zkw.getZNodePaths().baseZNode);
|
sb.append("HBase is rooted at ").append(zkw.getZNodePaths().baseZNode);
|
||||||
sb.append("\nActive master address: ");
|
sb.append("\nActive master address: ");
|
||||||
try {
|
try {
|
||||||
sb.append(MasterAddressTracker.getMasterAddress(zkw));
|
sb.append("\n ").append(MasterAddressTracker.getMasterAddress(zkw));
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
sb.append("<<FAILED LOOKUP: " + e.getMessage() + ">>");
|
sb.append("<<FAILED LOOKUP: " + e.getMessage() + ">>");
|
||||||
}
|
}
|
||||||
|
@ -1857,11 +1857,11 @@ public final class ZKUtil {
|
||||||
sb.append("\n ").append(child);
|
sb.append("\n ").append(child);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
sb.append("\nRegion server holding hbase:meta: "
|
sb.append("\nRegion server holding hbase:meta:");
|
||||||
+ MetaTableLocator.getMetaRegionLocation(zkw));
|
sb.append("\n ").append(MetaTableLocator.getMetaRegionLocation(zkw));
|
||||||
int numMetaReplicas = zkw.getMetaReplicaNodes().size();
|
int numMetaReplicas = zkw.getMetaReplicaNodes().size();
|
||||||
for (int i = 1; i < numMetaReplicas; i++) {
|
for (int i = 1; i < numMetaReplicas; i++) {
|
||||||
sb.append("\nRegion server holding hbase:meta, replicaId " + i + " "
|
sb.append("\n replica" + i + ": "
|
||||||
+ MetaTableLocator.getMetaRegionLocation(zkw, i));
|
+ MetaTableLocator.getMetaRegionLocation(zkw, i));
|
||||||
}
|
}
|
||||||
sb.append("\nRegion servers:");
|
sb.append("\nRegion servers:");
|
||||||
|
|
Loading…
Reference in New Issue