{"record":{"id":"3238dff25d87ea2d","repo":"apache/hadoop","slug":"the-path-target-does-not-contain-scheme-and-auth","errorCode":null,"errorMessage":"The path {target} does not contain scheme and authority thus cannot identify its name service","messagePattern":"The path (.+?) does not contain scheme and authority thus cannot identify its name service","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":804,"sourceCode":"          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 \" +\n                target + \". The namenode services specified in the \" +\n                \"configuration: \" + namenodes);\n          }\n        }\n        List<Path> targets = map.get(key);\n        if (targets == null) {\n          targets = Lists.newArrayList();\n          map.put(key, targets);\n        }","sourceCodeStart":786,"sourceCodeEnd":822,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/mover/Mover.java#L786-L822","documentation":"Error \"The path {target} does not contain scheme and authority thus cannot identify its name service\" thrown in apache/hadoop.","triggerScenarios":"Mover invocation with a path lacking scheme/authority in an HA or multi-nameservice setup, so the target nameservice cannot be determined.","commonSituations":"See trigger scenarios.","solutions":["Provide a fully qualified path including scheme and authority (e.g. hdfs://nn:8020/dir) or configure default fs so the name service can be identified.","Ensure fs.defaultFS in core-site.xml matches the intended name service."],"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"}