{"record":{"id":"87fa67be7fdde1cd","repo":"apache/hadoop","slug":"filesystem-not-generating-delegation-tokens","errorCode":null,"errorMessage":"Filesystem not generating Delegation Tokens: {}","messagePattern":"Filesystem not generating Delegation Tokens: (.+?)","errorType":"exception","errorClass":"IOException","httpStatus":null,"severity":"error","filePath":"hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/security/AbfsDtFetcher.java","lineNumber":82,"sourceCode":"  /**\n   *  Returns Token object via FileSystem, null if bad argument.\n   *  @param conf - a Configuration object used with FileSystem.get()\n   *  @param creds - a Credentials object to which token(s) will be added\n   *  @param renewer  - the renewer to send with the token request\n   *  @param url  - the URL to which the request is sent\n   *  @return a Token, or null if fetch fails.\n   */\n  public Token<?> addDelegationTokens(Configuration conf,\n      Credentials creds,\n      String renewer,\n      String url) throws Exception {\n    if (!url.startsWith(getServiceName().toString())) {\n      url = getServiceName().toString() + \"://\" + url;\n    }\n    FileSystem fs = FileSystem.get(URI.create(url), conf);\n    Token<?> token = fs.getDelegationToken(renewer);\n    if (token == null) {\n      throw new IOException(FETCH_FAILED + \": \" + url);\n    }\n    creds.addToken(token.getService(), token);\n    return token;\n  }\n}\n","sourceCodeStart":64,"sourceCodeEnd":88,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/security/AbfsDtFetcher.java#L64-L88","documentation":"Error \"Filesystem not generating Delegation Tokens: {}\" thrown in apache/hadoop.","triggerScenarios":"A YARN/Spark job requests an ABFS delegation token from a filesystem not configured to issue them.","commonSituations":"See trigger scenarios.","solutions":["Enable delegation token generation on the ABFS filesystem (correct auth type and token provider configuration).","Use a filesystem instance that supports delegation tokens for this job."],"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"}