{"record":{"id":"68dfc2ad3c818c04","repo":"apache/hadoop","slug":"the-resolved-paths-set-is-empty-please-check-whe","errorCode":null,"errorMessage":"The resolved paths set is empty.  Please check whether the srcPaths exist, where srcPaths = {srcPaths}","messagePattern":"The resolved paths set is empty\\.  Please check whether the srcPaths exist, where srcPaths = (.+?)","errorType":"exception","errorClass":"IOException","httpStatus":null,"severity":"error","filePath":"hadoop-tools/hadoop-archives/src/main/java/org/apache/hadoop/tools/HadoopArchives.java","lineNumber":910,"sourceCode":"      }\n      if (srcPaths.size() == 0) {\n        // assuming if the user does not specify path for sources\n        // the whole parent directory needs to be archived. \n        srcPaths.add(parentPath);\n      }\n      // do a glob on the srcPaths and then pass it on\n      List<Path> globPaths = new ArrayList<Path>();\n      for (Path p: srcPaths) {\n        FileSystem fs = p.getFileSystem(getConf());\n        FileStatus[] statuses = fs.globStatus(p);\n        if (statuses != null) {\n          for (FileStatus status: statuses) {\n            globPaths.add(fs.makeQualified(status.getPath()));\n          }\n        }\n      }\n      if (globPaths.isEmpty()) {\n        throw new IOException(\"The resolved paths set is empty.\"\n            + \"  Please check whether the srcPaths exist, where srcPaths = \"\n            + srcPaths);\n      }\n\n      archive(parentPath, globPaths, archiveName, destPath);\n    } catch(IOException ie) {\n      System.err.println(ie.getLocalizedMessage());\n      return -1;\n    }\n    return 0;\n  }\n\n  static final String TEST_HADOOP_ARCHIVES_JAR_PATH = \"test.hadoop.archives.jar\";\n\n  /** the main functions **/\n  public static void main(String[] args) {\n    JobConf job = new JobConf(HadoopArchives.class);\n","sourceCodeStart":892,"sourceCodeEnd":928,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-tools/hadoop-archives/src/main/java/org/apache/hadoop/tools/HadoopArchives.java#L892-L928","documentation":"Error \"The resolved paths set is empty.  Please check whether the srcPaths exist, where srcPaths = {srcPaths}\" thrown in apache/hadoop.","triggerScenarios":"Thrown at hadoop-tools/hadoop-archives/src/main/java/org/apache/hadoop/tools/HadoopArchives.java:910 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the source paths exist and are readable; glob resolution returned no paths."],"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"}