{"record":{"id":"36e966a19c31238e","repo":"apache/hadoop","slug":"the-path-target-is-not-absolute","errorCode":null,"errorMessage":"The path {target} is not absolute","messagePattern":"The path (.+?) is not absolute","errorType":"validation","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/mover/Mover.java","lineNumber":795,"sourceCode":"      String[] paths = null;\n      if (line.hasOption(\"f\")) {\n        paths = readPathFile(line.getOptionValue(\"f\"));\n      } else if (line.hasOption(\"p\")) {\n        paths = line.getOptionValues(\"p\");\n      }\n      Collection<URI> namenodes = DFSUtil.getInternalNsRpcUris(conf);\n      if (paths == null || paths.length == 0) {\n        for (URI namenode : namenodes) {\n          map.put(namenode, null);\n        }\n        return map;\n      }\n      final URI singleNs = namenodes.size() == 1 ?\n          namenodes.iterator().next() : null;\n      for (String path : paths) {\n        Path target = new Path(path);\n        if (!target.isUriPathAbsolute()) {\n          throw new IllegalArgumentException(\"The path \" + target\n              + \" is not absolute\");\n        }\n        URI targetUri = target.toUri();\n        if ((targetUri.getAuthority() == null || targetUri.getScheme() ==\n            null) && singleNs == null) {\n          // each path must contains both scheme and authority information\n          // unless there is only one name service specified in the\n          // configuration\n          throw new IllegalArgumentException(\"The path \" + target\n              + \" does not contain scheme and authority thus cannot identify\"\n              + \" its name service\");\n        }\n        URI key = singleNs;\n        if (singleNs == null) {\n          key = new URI(targetUri.getScheme(), targetUri.getAuthority(),\n              null, null, null);\n          if (!namenodes.contains(key)) {\n            throw new IllegalArgumentException(\"Cannot resolve the path \" +","sourceCodeStart":777,"sourceCodeEnd":813,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/mover/Mover.java#L777-L813","documentation":"Error \"The path {target} is not absolute\" thrown in apache/hadoop.","triggerScenarios":"Mover invocation with a target path argument that is not absolute.","commonSituations":"See trigger scenarios.","solutions":["Pass an absolute HDFS path (starting with /) to the Mover.","Correct the path argument; relative paths are not accepted."],"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-23T01:17:44.959Z"}