apache/hadoop · error · RetriableException
Namenode is in startup mode
Error message
Namenode is in startup mode
What it means
Error "Namenode is in startup mode" thrown in apache/hadoop.
Source
Thrown at hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/web/resources/NamenodeWebHdfsMethods.java:189
DFSConfigKeys.DFS_WEBHDFS_USE_IPC_CALLQ,
DFSConfigKeys.DFS_WEBHDFS_USE_IPC_CALLQ_DEFAULT);
}
if (LOG.isTraceEnabled()) {
LOG.trace("HTTP " + op.getValue().getType() + ": " + op + ", " + path
+ ", ugi=" + ugi + ", " + username + ", " + doAsUser
+ Param.toSortedString(", ", parameters));
}
//clear content type
response.setContentType(null);
}
private static NamenodeProtocols getRPCServer(NameNode namenode)
throws IOException {
final NamenodeProtocols np = namenode.getRpcServer();
if (np == null) {
throw new RetriableException("Namenode is in startup mode");
}
return np;
}
protected ClientProtocol getRpcClientProtocol() throws IOException {
final NameNode namenode = (NameNode)context.getAttribute("name.node");
final ClientProtocol cp = namenode.getRpcServer();
if (cp == null) {
throw new RetriableException("Namenode is in startup mode");
}
return cp;
}
protected String getScheme() {
return scheme;
}
protected ServletContext getContext() {View on GitHub (pinned to 2add963021)
Solutions
- Wait until the NameNode finishes startup (leaves startup mode) before issuing WebHDFS requests.
When it happens
Trigger: A WebHDFS request arrives while the NameNode is still in startup mode.
Common situations: Clients or health checks hitting the WebHDFS endpoint immediately after NameNode launch.
AI-assisted analysis of apache/hadoop@2add963021 (2026-08-22).
Data as JSON: /api/errors/d4d25ce8648675d7.
Report an issue: GitHub.