{"record":{"id":"06385a35424e3db0","repo":"apache/hadoop","slug":"the-target-file-system-tgtfs-getscheme-d","errorCode":null,"errorMessage":"The target file system \" + tgtFs.getScheme() + \" does not support snapshot.","messagePattern":"The target file system \" \\+ tgtFs\\.getScheme\\(\\) \\+ \" does not support snapshot\\.","errorType":"exception","errorClass":"UnsupportedOperationException","httpStatus":null,"severity":"error","filePath":"hadoop-tools/hadoop-distcp/src/main/java/org/apache/hadoop/tools/DistCpSync.java","lineNumber":169,"sourceCode":"    }\n\n    return true;\n  }\n\n  /**\n   * Check if the source and target filesystems support snapshots.\n   */\n  private void checkFilesystemSupport(Path sourceDir, Path targetDir,\n      FileSystem srcFs, FileSystem tgtFs) throws IOException {\n    if (!srcFs.hasPathCapability(sourceDir,\n        CommonPathCapabilities.FS_SNAPSHOTS)) {\n      throw new UnsupportedOperationException(\n          \"The source file system \" + srcFs.getScheme()\n              + \" does not support snapshot.\");\n    }\n    if (!tgtFs.hasPathCapability(targetDir,\n        CommonPathCapabilities.FS_SNAPSHOTS)) {\n      throw new UnsupportedOperationException(\n          \"The target file system \" + tgtFs.getScheme()\n              + \" does not support snapshot.\");\n    }\n    try {\n      getSnapshotDiffReportMethod(srcFs);\n    } catch (NoSuchMethodException e) {\n      throw new UnsupportedOperationException(\n          \"The source file system \" + srcFs.getScheme()\n              + \" does not support getSnapshotDiffReport\",\n          e);\n    }\n    try {\n      getSnapshotDiffReportMethod(tgtFs);\n    } catch (NoSuchMethodException e) {\n      throw new UnsupportedOperationException(\n          \"The target file system \" + tgtFs.getScheme()\n              + \" does not support getSnapshotDiffReport\",\n          e);","sourceCodeStart":151,"sourceCodeEnd":187,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-tools/hadoop-distcp/src/main/java/org/apache/hadoop/tools/DistCpSync.java#L151-L187","documentation":"Error \"The target file system \" + tgtFs.getScheme() + \" does not support snapshot.\" thrown in apache/hadoop.","triggerScenarios":"distcp sync targets a destination filesystem without snapshot support.","commonSituations":"See trigger scenarios.","solutions":["Enable snapshots on the target directory, or use a target filesystem supporting snapshots.","Run without -diff/-rdiff if the target cannot hold snapshots."],"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"}