diff --git a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon
index a507bd2bc27..48ff0e39820 100644
--- a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon
+++ b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon
@@ -57,6 +57,34 @@ ServerManager serverManager = master.getServerManager();
AssignmentManager assignmentManager = master.getAssignmentManager();
%java>
+<%class>
+ public String formatZKString() {
+ StringBuilder quorums = new StringBuilder();
+ String zkQuorum = master.getZooKeeperWatcher().getQuorum();
+
+ if (null == zkQuorum) {
+ return quorums.toString();
+ }
+
+ String[] zks = zkQuorum.split(",");
+
+ if (zks.length == 0) {
+ return quorums.toString();
+ }
+
+ for(int i = 0; i < zks.length; ++i) {
+ quorums.append(zks[i].trim()).append(",");
+
+ if ((i+1) % 4 == 0 && i != (zks.length - 1)) {
+ quorums.append("
");
+ }
+ }
+
+ quorums.setLength(quorums.length() - 1);
+ return quorums.toString();
+ }
+%class>
+
@@ -211,7 +239,8 @@ AssignmentManager assignmentManager = master.getAssignmentManager();