HDFS-15916. Addendum. DistCp: Backward compatibility: Distcp fails from Hadoop 3 to Hadoop 2 for snapshotdiff. (#3056)
This commit is contained in:
parent
00d372b663
commit
a1a3184171
|
@ -2395,7 +2395,8 @@ public class DistributedFileSystem extends FileSystem
|
||||||
} catch (RpcNoSuchMethodException e) {
|
} catch (RpcNoSuchMethodException e) {
|
||||||
// In case the server doesn't support getSnapshotDiffReportListing,
|
// In case the server doesn't support getSnapshotDiffReportListing,
|
||||||
// fallback to getSnapshotDiffReport.
|
// fallback to getSnapshotDiffReport.
|
||||||
LOG.warn("Falling back to getSnapshotDiffReport {}", e.getMessage());
|
DFSClient.LOG.warn(
|
||||||
|
"Falling back to getSnapshotDiffReport {}", e.getMessage());
|
||||||
return dfs.getSnapshotDiffReport(snapshotDir, fromSnapshot, toSnapshot);
|
return dfs.getSnapshotDiffReport(snapshotDir, fromSnapshot, toSnapshot);
|
||||||
}
|
}
|
||||||
startPath = report.getLastPath();
|
startPath = report.getLastPath();
|
||||||
|
|
Loading…
Reference in New Issue