{"record":{"id":"529a9fdc5f7203bc","repo":"apache/hadoop","slug":"cannot-resolve-the-path-target-the-namenode-ser","errorCode":null,"errorMessage":"Cannot resolve the path {target}. The namenode services specified in the configuration: {namenodes}","messagePattern":"Cannot resolve the path (.+?)\\. The namenode services specified in the configuration: (.+?)","errorType":"exception","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/mover/Mover.java","lineNumber":813,"sourceCode":"          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        }\n        targets.add(Path.getPathWithoutSchemeAndAuthority(target));\n      }\n      return map;\n    }\n\n    @VisibleForTesting\n    static Map<URI, List<Path>> getNameNodePathsToMove(Configuration conf,\n        String... args) throws Exception {\n      final Options opts = buildCliOptions();","sourceCodeStart":795,"sourceCodeEnd":831,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/mover/Mover.java#L795-L831","documentation":"Error \"Cannot resolve the path {target}. The namenode services specified in the configuration: {namenodes}\" thrown in apache/hadoop.","triggerScenarios":"Mover invocation when the path's nameservice does not match any nameservice configured in dfs.nameservices.","commonSituations":"See trigger scenarios.","solutions":["Check that the path's authority matches one of the namenodes configured in dfs.nameservices / dfs.ha.namenodes.","Correct the path hostname/port or fix the HA/federation configuration in hdfs-site.xml."],"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"}