{"record":{"id":"a60ff3e2a914bb94","repo":"apache/hadoop","slug":"could-not-create-zk-paths","errorCode":null,"errorMessage":"Could not create ZK paths","messagePattern":"Could not create ZK paths","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/ZKDelegationTokenSecretManager.java","lineNumber":288,"sourceCode":"      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);\n      if (keyIdSeqCounter != null) {\n        keyIdSeqCounter.start();\n      }\n    } catch (Exception e) {\n      throw new IOException(\"Could not start KeyId Counter\", e);\n    }\n    try {\n      createPersistentNode(ZK_DTSM_MASTER_KEY_ROOT);\n      createPersistentNode(ZK_DTSM_TOKENS_ROOT);\n    } catch (Exception e) {\n      throw new RuntimeException(\"Could not create ZK paths\");\n    }\n    try {\n      keyCache = CuratorCache.bridgeBuilder(zkClient, ZK_DTSM_MASTER_KEY_ROOT)\n          .build();\n      CuratorCacheListener keyCacheListener = CuratorCacheListener.builder()\n          .forCreatesAndChanges((oldNode, node) -> {\n            try {\n              processKeyAddOrUpdate(node.getData());\n            } catch (IOException e) {\n              LOG.error(\"Error while processing Curator keyCacheListener \"\n                  + \"NODE_CREATED / NODE_CHANGED event\");\n              throw new UncheckedIOException(e);\n            }\n          })\n          .forDeletes(childData -> processKeyRemoved(childData.getPath()))\n          .build();\n      keyCache.listenable().addListener(keyCacheListener);\n      keyCache.start();","sourceCodeStart":270,"sourceCodeEnd":306,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/ZKDelegationTokenSecretManager.java#L270-L306","documentation":"Error \"Could not create ZK paths\" thrown in apache/hadoop.","triggerScenarios":"Thrown at hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/ZKDelegationTokenSecretManager.java:288 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Creating the working ZK paths failed. Ensure the parent znode exists and the configured auth has CREATE permission under the namespace."],"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"}