{"record":{"id":"94a61d42b5212cd2","repo":"apache/hadoop","slug":"directory-file-does-not-exist-path","errorCode":null,"errorMessage":"Directory/File does not exist <path>","messagePattern":"Directory/File does not exist <path>","errorType":"exception","errorClass":"FileNotFoundException","httpStatus":null,"severity":"error","filePath":"hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirectory.java","lineNumber":1897,"sourceCode":"          NameNode.getRemoteUser());\n    } catch (IOException e) {\n      throw new AccessControlException(e);\n    }\n  }\n\n  @VisibleForTesting\n  FSPermissionChecker getPermissionChecker(String fsOwner, String superGroup,\n      UserGroupInformation ugi) throws AccessControlException {\n    return new FSPermissionChecker(\n        fsOwner, superGroup, ugi, getUserFilteredAttributeProvider(ugi),\n        useAuthorizationWithContextAPI,\n        accessControlEnforcerReportingThresholdMs);\n  }\n\n  void checkOwner(FSPermissionChecker pc, INodesInPath iip)\n      throws AccessControlException, FileNotFoundException {\n    if (iip.getLastINode() == null) {\n      throw new FileNotFoundException(\n          \"Directory/File does not exist \" + iip.getPath());\n    }\n    checkPermission(pc, iip, true, null, null, null, null);\n  }\n\n  void checkPathAccess(FSPermissionChecker pc, INodesInPath iip,\n      FsAction access) throws AccessControlException {\n    checkPermission(pc, iip, false, null, null, access, null);\n  }\n  void checkParentAccess(FSPermissionChecker pc, INodesInPath iip,\n      FsAction access) throws AccessControlException {\n    checkPermission(pc, iip, false, null, access, null, null);\n  }\n\n  void checkAncestorAccess(FSPermissionChecker pc, INodesInPath iip,\n      FsAction access) throws AccessControlException {\n    checkPermission(pc, iip, false, access, null, null, null);\n  }","sourceCodeStart":1879,"sourceCodeEnd":1915,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirectory.java#L1879-L1915","documentation":"Error \"Directory/File does not exist <path>\" thrown in apache/hadoop.","triggerScenarios":"Accessing a path (e.g. for quota or attribute checks) that does not exist in the namespace.","commonSituations":"See trigger scenarios.","solutions":["Confirm the path exists before the operation; check spelling with 'hdfs dfs -ls'."],"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"}