HDFS-10628. Log HDFS Balancer exit message to its own log. Contributed by Jiayi Zhou.
(cherry picked from commit c48e9d608c
)
This commit is contained in:
parent
e34e1aa4fe
commit
6171498375
|
@ -604,6 +604,8 @@ public class Balancer {
|
||||||
if (!runDuringUpgrade && nnc.isUpgrading()) {
|
if (!runDuringUpgrade && nnc.isUpgrading()) {
|
||||||
System.err.println("Balancer exiting as upgrade is not finalized, "
|
System.err.println("Balancer exiting as upgrade is not finalized, "
|
||||||
+ "please finalize the HDFS upgrade before running the balancer.");
|
+ "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);
|
return newResult(ExitStatus.UNFINALIZED_UPGRADE, bytesLeftToMove, -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue