From e3bd43766f17738f7b531c4b66a7f7e93c53fb50 Mon Sep 17 00:00:00 2001 From: Andrew Wang Date: Thu, 29 May 2014 21:39:09 +0000 Subject: [PATCH] HDFS-6447. balancer should timestamp the completion message. Contributed by Juan Yu. git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1598412 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 +++ .../java/org/apache/hadoop/hdfs/server/balancer/Balancer.java | 1 + 2 files changed, 4 insertions(+) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 801d793188e..72464589936 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -134,6 +134,9 @@ Release 2.5.0 - UNRELEASED HDFS-6356. Fix typo in DatanodeLayoutVersion. (Tulasi G via wang) + HDFS-6447. balancer should timestamp the completion message. + (Juan Yu via wang). + OPTIMIZATIONS HDFS-6214. Webhdfs has poor throughput for files >2GB (daryn) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/balancer/Balancer.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/balancer/Balancer.java index 3af00d4d68b..3b7a07a0bbd 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/balancer/Balancer.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/balancer/Balancer.java @@ -1552,6 +1552,7 @@ public class Balancer { System.out.println(e + ". Exiting ..."); return ReturnStatus.INTERRUPTED.code; } finally { + System.out.format("%-24s ", DateFormat.getDateTimeInstance().format(new Date())); System.out.println("Balancing took " + time2Str(Time.now()-startTime)); } }