From 1edabc4a46de2443e46355da391ff64ead183776 Mon Sep 17 00:00:00 2001 From: Brahma Reddy Battula Date: Thu, 24 Nov 2016 22:23:22 +0530 Subject: [PATCH] HADOOP-11603. Metric Snapshot log can be changed #MetricsSystemImpl.java since all the services will be initialized. Contributed By Brahma Reddy Battula. (cherry picked from commit 13501053dd95f41ac14091f5bbd79bcb2a3896a3) --- .../org/apache/hadoop/metrics2/impl/MetricsSystemImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/MetricsSystemImpl.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/MetricsSystemImpl.java index 3ce2a329d6a..e97e9483d4a 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/MetricsSystemImpl.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/MetricsSystemImpl.java @@ -33,7 +33,6 @@ import javax.management.ObjectName; import com.google.common.collect.Lists; import com.google.common.collect.Maps; import com.google.common.annotations.VisibleForTesting; -import java.util.Locale; import static com.google.common.base.Preconditions.*; import org.apache.commons.configuration.PropertiesConfiguration; @@ -372,7 +371,8 @@ public class MetricsSystemImpl extends MetricsSystem implements MetricsSource { } } }, millis, millis); - LOG.info("Scheduled snapshot period at "+ (period/1000) +" second(s)."); + LOG.info("Scheduled Metric snapshot period at " + (period / 1000) + + " second(s)."); } synchronized void onTimerEvent() {