From c48e9d608c1daf7826f2e738c0a67d8eab79d8de Mon Sep 17 00:00:00 2001 From: Akira Ajisaka Date: Fri, 15 Jul 2016 11:42:44 -0700 Subject: [PATCH] HDFS-10628. Log HDFS Balancer exit message to its own log. Contributed by Jiayi Zhou. --- .../java/org/apache/hadoop/hdfs/server/balancer/Balancer.java | 2 ++ 1 file changed, 2 insertions(+) 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 6ebd6b05cc7..8d94ed587a2 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 @@ -609,6 +609,8 @@ public class Balancer { if (!runDuringUpgrade && nnc.isUpgrading()) { System.err.println("Balancer exiting as upgrade is not finalized, " + "please finalize the HDFS upgrade before running the balancer."); + LOG.error("Balancer exiting as upgrade is not finalized, " + + "please finalize the HDFS upgrade before running the balancer."); return newResult(ExitStatus.UNFINALIZED_UPGRADE, bytesLeftToMove, -1); }