{"record":{"id":"6478e7313aede277","repo":"apache/hadoop","slug":"linkdir-not-found","errorCode":null,"errorMessage":"${linkDir} not found.","messagePattern":"(.+?) not found\\.","errorType":"exception","errorClass":"FileNotFoundException","httpStatus":null,"severity":"error","filePath":"hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/HardLink.java","lineNumber":208,"sourceCode":"   * @throws IOException raised on errors performing I/O.\n   */\n  public static void createHardLinkMult(File parentDir, String[] fileBaseNames,\n      File linkDir) throws IOException {\n    if (parentDir == null) {\n      throw new IOException(\n          \"invalid arguments to createHardLinkMult: parent directory is null\");\n    }\n    if (linkDir == null) {\n      throw new IOException(\n          \"invalid arguments to createHardLinkMult: link directory is null\");\n    }\n    if (fileBaseNames == null) {\n      throw new IOException(\n          \"invalid arguments to createHardLinkMult: \"\n          + \"filename list can be empty but not null\");\n    }\n    if (!linkDir.exists()) {\n      throw new FileNotFoundException(linkDir + \" not found.\");\n    }\n    for (String name : fileBaseNames) {\n      createLink(linkDir.toPath().resolve(name),\n                 parentDir.toPath().resolve(name));\n    }\n  }\n\n    /**\n     * Determines whether the system supports hardlinks.\n     * @param f - file to examine\n     * @return true if hardlinks are supported, false otherwise\n     */\n  public static boolean supportsHardLink(File f) {\n    try {\n      FileStore store = Files.getFileStore(f.toPath());\n      return store.supportsFileAttributeView(FILE_ATTRIBUTE_VIEW);\n    } catch (IOException e) {\n      LOG.warn(\"Failed to determine if hardlink is supported\", e);","sourceCodeStart":190,"sourceCodeEnd":226,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/HardLink.java#L190-L226","documentation":"Error \"${linkDir} not found.\" thrown in apache/hadoop.","triggerScenarios":"Thrown at hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/HardLink.java:208 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Create the link directory before creating hard links into it.","Verify the ${linkDir} path spelling."],"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"}