apache/hadoop · error · UnsupportedOperationException
The source file system " + srcFs.getScheme() + " does not…
Error message
The source file system " + srcFs.getScheme() + " does not support getSnapshotDiffReport
What it means
DistCpSync capability check: the source FileSystem class does not expose a getSnapshotDiffReport method (looked up reflectively), so the diff report needed for sync cannot be obtained from it.
Solutions
- Upgrade or configure the source filesystem to support getSnapshotDiffReport.
- Avoid snapshot-diff based sync for this source.
Defensive patterns
Strategy: validation
When it happens
Trigger: The source filesystem does not implement getSnapshotDiffReport.
Common situations: See trigger scenarios.
AI-assisted analysis of apache/hadoop@2add963021 (2026-08-22).
Data as JSON: /api/errors/c3757ff17682a618.
Report an issue: GitHub.
Appendix: source
Thrown at hadoop-tools/hadoop-distcp/src/main/java/org/apache/hadoop/tools/DistCpSync.java:176
*/
private void checkFilesystemSupport(Path sourceDir, Path targetDir,
FileSystem srcFs, FileSystem tgtFs) throws IOException {
if (!srcFs.hasPathCapability(sourceDir,
CommonPathCapabilities.FS_SNAPSHOTS)) {
throw new UnsupportedOperationException(
"The source file system " + srcFs.getScheme()
+ " does not support snapshot.");
}
if (!tgtFs.hasPathCapability(targetDir,
CommonPathCapabilities.FS_SNAPSHOTS)) {
throw new UnsupportedOperationException(
"The target file system " + tgtFs.getScheme()
+ " does not support snapshot.");
}
try {
getSnapshotDiffReportMethod(srcFs);
} catch (NoSuchMethodException e) {
throw new UnsupportedOperationException(
"The source file system " + srcFs.getScheme()
+ " does not support getSnapshotDiffReport",
e);
}
try {
getSnapshotDiffReportMethod(tgtFs);
} catch (NoSuchMethodException e) {
throw new UnsupportedOperationException(
"The target file system " + tgtFs.getScheme()
+ " does not support getSnapshotDiffReport",
e);
}
}
public boolean sync() throws IOException {
if (!preSyncCheck()) {
return false;View on GitHub (pinned to 2add963021)