try {
if (fc == null) {
throw new IOException("FastCopy object has not been instantiated.");
}
LOG.info("Use FastCopy to copy File from " + srcstat.getPath() +" to " + tmpFile);
CopyResult ret = fc.copy(srcstat.getPath().toString(), tmpFile.toString(),
DFSUtil.convertToDFS(srcFileSys),
DFSUtil.convertToDFS(destFileSys), reporter);
// update the skip count;
if (ret.equals(CopyResult.SKIP)) {
outc.collect(filePair, new Text("SKIP: " + srcstat.getPath()));
++ skipcount;
reporter.incrCounter(Counter.SKIP, 1);
updateStatus(reporter);
return;