After I start a Balance process in HDFS, the process is shut down abnormally. If I attempt to execute the Balance process again, it fails again.
After a Balance process is executed in HDFS, another Balance process can be executed only after the /system/balancer.id file is automatically released.
However, if a Balance process is shut down abnormally, the /system/balancer.id has not been released when the Balance is executed again, which triggers the append /system/balancer.id operation.
After the append /system/balancer.id operation fails, the exception message RecoveryInProgressException is displayed.
org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.protocol.RecoveryInProgressException): Failed to APPEND_FILE /system/balancer.id for DFSClient because lease recovery is in progress. Try again later.
java.io.IOException: Cannot create any NameNode Connectors.. Exiting...
Either of the following methods can be used to solve the problem: