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:
litao 2021-06-15 21:10:55 +08:00 committed by GitHub
parent 8f618a0846
commit 555f8b461f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -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:");