From 555f8b461ff432c1ad2bc79bffc9b3b49833b1f8 Mon Sep 17 00:00:00 2001 From: litao Date: Tue, 15 Jun 2021 21:10:55 +0800 Subject: [PATCH] HBASE-26000 Optimize the display of ZK dump in the master web UI (#3383) Signed-off-by: Wellington Chevreuil Signed-off-by: Duo Zhang --- .../java/org/apache/hadoop/hbase/zookeeper/ZKUtil.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKUtil.java b/hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKUtil.java index 3184a59097a..d124a9a961e 100644 --- a/hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKUtil.java +++ b/hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKUtil.java @@ -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("<>"); } @@ -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 rsChildrenNoWatchList =