You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by sj...@apache.org on 2016/07/16 03:36:30 UTC
[09/50] [abbrv] hadoop git commit: HDFS-10628. Log HDFS Balancer exit
message to its own log. Contributed by Jiayi Zhou.
HDFS-10628. Log HDFS Balancer exit message to its own log. Contributed by Jiayi Zhou.
(cherry picked from commit c48e9d608c1daf7826f2e738c0a67d8eab79d8de)
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/61714983
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/61714983
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/61714983
Branch: refs/heads/YARN-5355-branch-2
Commit: 617149837531062e4e1ee9eeb50a324766b14c60
Parents: e34e1aa
Author: Akira Ajisaka <aa...@apache.org>
Authored: Fri Jul 15 11:42:44 2016 -0700
Committer: Akira Ajisaka <aa...@apache.org>
Committed: Fri Jul 15 11:43:27 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/61714983/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 c515fb9..94d90db 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);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org