{"record":{"id":"4593bfb1601a31ee","repo":"apache/hadoop","slug":"could-not-create-namespace","errorCode":null,"errorMessage":"Could not create namespace","messagePattern":"Could not create namespace","errorType":"exception","errorClass":"IOException","httpStatus":null,"severity":"error","filePath":"hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/ZKDelegationTokenSecretManager.java","lineNumber":259,"sourceCode":"  @Override\n  public void startThreads() throws IOException {\n    if (!isExternalClient) {\n      try {\n        zkClient.start();\n      } catch (Exception e) {\n        throw new IOException(\"Could not start Curator Framework\", e);\n      }\n    } else {\n      // If namespace parents are implicitly created, they won't have ACLs.\n      // So, let's explicitly create them.\n      CuratorFramework nullNsFw = zkClient.usingNamespace(null);\n      try {\n        String nameSpace = \"/\" + zkClient.getNamespace();\n        nullNsFw.create().creatingParentContainersIfNeeded().forPath(nameSpace);\n      } catch (KeeperException.NodeExistsException ignore) {\n        // We don't care if the znode already exists\n      } catch (Exception e) {\n        throw new IOException(\"Could not create namespace\", e);\n      }\n    }\n    try {\n      delTokSeqCounter = new SharedCount(zkClient, ZK_DTSM_SEQNUM_ROOT, 0);\n      if (delTokSeqCounter != null) {\n        delTokSeqCounter.start();\n      }\n      // the first batch range should be allocated during this starting window\n      // by calling the incrSharedCount\n      currentSeqNum = incrSharedCount(delTokSeqCounter, seqNumBatchSize);\n      currentMaxSeqNum = currentSeqNum + seqNumBatchSize;\n      LOG.info(\"Fetched initial range of seq num, from {} to {} \",\n          currentSeqNum+1, currentMaxSeqNum);\n    } catch (Exception e) {\n      throw new IOException(\"Could not start Sequence Counter\", e);\n    }\n    try {\n      keyIdSeqCounter = new SharedCount(zkClient, ZK_DTSM_KEYID_ROOT, 0);","sourceCodeStart":241,"sourceCodeEnd":277,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/ZKDelegationTokenSecretManager.java#L241-L277","documentation":"Error \"Could not create namespace\" thrown in apache/hadoop.","triggerScenarios":"Thrown at hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/ZKDelegationTokenSecretManager.java:259 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Creating the Curator namespace znode failed. Ensure the ZK client has CREATE permission on the parent path and the ensemble is writable."],"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-22T20:17:22.307Z"}