{"record":{"id":"d4d25ce8648675d7","repo":"apache/hadoop","slug":"namenode-is-in-startup-mode-d4d25c","errorCode":null,"errorMessage":"Namenode is in startup mode","messagePattern":"Namenode is in startup mode","errorType":"exception","errorClass":"RetriableException","httpStatus":null,"severity":"error","filePath":"hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/web/resources/NamenodeWebHdfsMethods.java","lineNumber":189,"sourceCode":"          DFSConfigKeys.DFS_WEBHDFS_USE_IPC_CALLQ,\n          DFSConfigKeys.DFS_WEBHDFS_USE_IPC_CALLQ_DEFAULT);\n    }\n\n    if (LOG.isTraceEnabled()) {\n      LOG.trace(\"HTTP \" + op.getValue().getType() + \": \" + op + \", \" + path\n          + \", ugi=\" + ugi + \", \" + username + \", \" + doAsUser\n          + Param.toSortedString(\", \", parameters));\n    }\n\n    //clear content type\n    response.setContentType(null);\n  }\n\n  private static NamenodeProtocols getRPCServer(NameNode namenode)\n      throws IOException {\n     final NamenodeProtocols np = namenode.getRpcServer();\n     if (np == null) {\n       throw new RetriableException(\"Namenode is in startup mode\");\n     }\n     return np;\n  }\n\n  protected ClientProtocol getRpcClientProtocol() throws IOException {\n    final NameNode namenode = (NameNode)context.getAttribute(\"name.node\");\n    final ClientProtocol cp = namenode.getRpcServer();\n    if (cp == null) {\n      throw new RetriableException(\"Namenode is in startup mode\");\n    }\n    return cp;\n  }\n\n  protected String getScheme() {\n    return scheme;\n  }\n\n  protected ServletContext getContext() {","sourceCodeStart":171,"sourceCodeEnd":207,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/web/resources/NamenodeWebHdfsMethods.java#L171-L207","documentation":"Error \"Namenode is in startup mode\" thrown in apache/hadoop.","triggerScenarios":"A WebHDFS request arrives while the NameNode is still in startup mode.","commonSituations":"Clients or health checks hitting the WebHDFS endpoint immediately after NameNode launch.","solutions":["Wait until the NameNode finishes startup (leaves startup mode) before issuing WebHDFS requests."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2add9630210752f88ceb1bb74eb65e37bf41da8e","analyzedAt":"2026-08-22T19:55:07.957Z","schemaVersion":2},"datasetVersion":"2026-08-23T01:17:44.959Z"}