apache/hadoop · error · ServiceFailedException
Failed to start backup services
Error message
Failed to start backup services
What it means
BackupState.enterState wraps context.startActiveServices() and converts an underlying IOException (e.g. edit log or storage failure) into ServiceFailedException, meaning the node could not enter backup state.
Solutions
- Check the BackupNode log for the underlying cause (checkpoint dir, RPC bind failure, registration error) and fix the configuration.
- Verify dfs.namenode.backup.address / http-address ports are free and the checkpoint directories are valid.
Defensive patterns
Strategy: try-catch
When it happens
Trigger: NameNode transition to backup state when backup services (Checkpoint/BackupNode components) fail to start.
Common situations: See trigger scenarios.
AI-assisted analysis of apache/hadoop@2add963021 (2026-08-22).
Data as JSON: /api/errors/5b53d76ec6330ac6.
Report an issue: GitHub.
Appendix: source
Thrown at hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/BackupState.java:53
}
@Override // HAState
public void checkOperation(HAContext context, OperationCategory op)
throws StandbyException {
context.checkOperation(op);
}
@Override // HAState
public boolean shouldPopulateReplQueues() {
return false;
}
@Override // HAState
public void enterState(HAContext context) throws ServiceFailedException {
try {
context.startActiveServices();
} catch (IOException e) {
throw new ServiceFailedException("Failed to start backup services", e);
}
}
@Override // HAState
public void exitState(HAContext context) throws ServiceFailedException {
try {
context.stopActiveServices();
} catch (IOException e) {
throw new ServiceFailedException("Failed to stop backup services", e);
}
}
@Override // HAState
public void prepareToExitState(HAContext context) throws ServiceFailedException {
context.prepareToStopStandbyServices();
}
}
View on GitHub (pinned to 2add963021)