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/17c74ac5 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/17c74ac5 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/17c74ac5 Branch: refs/heads/YARN-2915 Commit: 17c74ac5f6e58445323e2a9b6095d67faed16b1c Parents: 80b2f93 Author: Akira Ajisaka <[email protected]> Authored: Fri Jul 15 11:42:44 2016 -0700 Committer: Subru Krishnan <[email protected]> Committed: Tue Jul 19 14:39:31 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/17c74ac5/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]
