{"record":{"id":"87d034db518f00f1","repo":"apache/hadoop","slug":"destination-path-not-specified","errorCode":null,"errorMessage":"Destination path not specified.","messagePattern":"Destination path not specified\\.","errorType":"exception","errorClass":"IOException","httpStatus":null,"severity":"error","filePath":"hadoop-tools/hadoop-archives/src/main/java/org/apache/hadoop/tools/HadoopArchives.java","lineNumber":891,"sourceCode":"        if (i == (args.length - 1)) {\n          destPath = new Path(args[i]);\n          if (!destPath.isAbsolute()) {\n            destPath = destPath.getFileSystem(getConf()).makeQualified(destPath);\n          }\n        }\n        else {\n          Path argPath = new Path(args[i]);\n          if (argPath.isAbsolute()) {\n            printUsage(options, false);\n            throw new IOException(\"Source path \" + argPath +\n                \" is not relative to \"+ parentPath);\n          }\n          srcPaths.add(new Path(parentPath, argPath));\n        }\n      }\n      if (destPath == null) {\n        printUsage(options, false);\n        throw new IOException(\"Destination path not specified.\");\n      }\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()) {","sourceCodeStart":873,"sourceCodeEnd":909,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-tools/hadoop-archives/src/main/java/org/apache/hadoop/tools/HadoopArchives.java#L873-L909","documentation":"Error \"Destination path not specified.\" thrown in apache/hadoop.","triggerScenarios":"Thrown at hadoop-tools/hadoop-archives/src/main/java/org/apache/hadoop/tools/HadoopArchives.java:891 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass a destination path argument to the hadoop archive command."],"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"}