HDFS-10628. Log HDFS Balancer exit message to its own log. Contributed by Jiayi Zhou.
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/c48e9d60 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/c48e9d60 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/c48e9d60 Branch: refs/heads/YARN-5355 Commit: c48e9d608c1daf7826f2e738c0a67d8eab79d8de Parents: 24db916 Author: Akira Ajisaka <[email protected]> Authored: Fri Jul 15 11:42:44 2016 -0700 Committer: Akira Ajisaka <[email protected]> Committed: Fri Jul 15 11:42:44 2016 -0700 ---------------------------------------------------------------------- .../main/java/org/apache/hadoop/hdfs/server/balancer/Balancer.java | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/c48e9d60/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/balancer/Balancer.java ---------------------------------------------------------------------- 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 6ebd6b0..8d94ed5 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); } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
