HDFS-10628. Log HDFS Balancer exit message to its own log. Contributed by Jiayi Zhou.
This commit is contained in:
parent
24db9167f1
commit
c48e9d608c
@ -609,6 +609,8 @@ Result runOneIteration() {
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user