From 617149837531062e4e1ee9eeb50a324766b14c60 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. (cherry picked from commit c48e9d608c1daf7826f2e738c0a67d8eab79d8de) --- .../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 c515fb92e0e..94d90dbdb05 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 @@ -604,6 +604,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); }