{"record":{"id":"0aafade454bad23c","repo":"apache/hadoop","slug":"parent-path-not-specified","errorCode":null,"errorMessage":"Parent path not specified.","messagePattern":"Parent 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":856,"sourceCode":"\n      if (commandLine.hasOption(HELP)) {\n        printUsage(options, true);\n        return 0;\n      }\n      if (!commandLine.hasOption(ARCHIVE_NAME)) {\n        printUsage(options, false);\n        throw new IOException(\"Archive Name not specified.\");\n      }\n      String archiveName = commandLine.getOptionValue(ARCHIVE_NAME);\n      if (!checkValidName(archiveName)) {\n        printUsage(options, false);\n        throw new IOException(\"Invalid name for archives. \" + archiveName);\n      }\n      //check to see if relative parent has been provided or not\n      //this is a required parameter. \n      if (!commandLine.hasOption(PARENT_PATH)) {\n        printUsage(options, false);\n        throw new IOException(\"Parent path not specified.\");\n      }\n      Path parentPath = new Path(commandLine.getOptionValue(PARENT_PATH));\n      if (!parentPath.isAbsolute()) {\n        parentPath = parentPath.getFileSystem(getConf()).makeQualified(\n            parentPath);\n      }\n\n      if (commandLine.hasOption(REPLICATION)) {\n        repl = Short.parseShort(commandLine.getOptionValue(REPLICATION));\n      }\n      // Remaining args\n      args = commandLine.getArgs();\n      List<Path> srcPaths = new ArrayList<Path>();\n      Path destPath = null;\n      //read the rest of the paths\n      for (int i = 0; i < args.length; i++) {\n        if (i == (args.length - 1)) {\n          destPath = new Path(args[i]);","sourceCodeStart":838,"sourceCodeEnd":874,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-tools/hadoop-archives/src/main/java/org/apache/hadoop/tools/HadoopArchives.java#L838-L874","documentation":"Error \"Parent path not specified.\" thrown in apache/hadoop.","triggerScenarios":"Thrown at hadoop-tools/hadoop-archives/src/main/java/org/apache/hadoop/tools/HadoopArchives.java:856 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass -p <parentPath> specifying the common parent of the source paths to archive."],"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"}