From 1ba949e0307e4fda3f9234bc436490fb33155bea Mon Sep 17 00:00:00 2001 From: Zach York Date: Thu, 15 Jun 2017 17:10:07 -0700 Subject: [PATCH] HBASE-18520 Add jmx value to determine true Master Start time This is to determine how long it took in total for the master to start and finish initializing. Signed-off-by: tedyu --- .../src/main/java/org/apache/hadoop/hbase/master/HMaster.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java index 950ea4ac612..5b1aed66341 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java @@ -894,7 +894,8 @@ public class HMaster extends HRegionServer implements MasterServices, Server { } status.markComplete("Initialization successful"); - LOG.info("Master has completed initialization"); + LOG.info(String.format("Master has completed initialization %.3fsec", + (System.currentTimeMillis() - masterActiveTime) / 1000.0f)); this.masterFinishedInitializationTime = System.currentTimeMillis(); configurationManager.registerObserver(this.balancer);