ayushtkn commented on a change in pull request #2043:
URL: https://github.com/apache/hive/pull/2043#discussion_r600578957
##########
File path: ql/src/java/org/apache/hadoop/hive/ql/exec/repl/DirCopyTask.java
##########
@@ -162,14 +165,21 @@ public int execute() {
// do we create a new conf and only here provide this additional
option so that we get away from
// differences of data in two location for the same directories ?
// basically add distcp.options.delete to hiveconf new object ?
- FileUtils.distCp(
- sourcePath.getFileSystem(conf), // source file system
- Collections.singletonList(sourcePath), // list of source paths
- targetPath,
- false,
- proxyUser,
- conf,
- ShimLoader.getHadoopShims());
+ if (!getWork().getCopyMode()
+ .equals(SnapshotUtils.SnapshotCopyMode.FALLBACK_COPY)) {
+ LOG.info("Using Snapshot mode of copy for source: {} and target:"
+ + " {}", sourcePath, targetPath);
+ copyUsingDistCpSnapshots(sourcePath, targetPath, proxyUser);
+ // Use distcp with snapshots for copy.
Review comment:
done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]