Examples of CopyResult


Examples of org.apache.hadoop.hdfs.tools.FastCopy.CopyResult

        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;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.