private void moveToDoneNow(final Path src, final Path target) throws IOException {
   /* LOG.info("Moving "+src.toString()+" to "+target.toString()) */
   LOG.moving(String.valueOf(src.toString()), String.valueOf(target.toString()))
       .tag("methodCall")
       .info();
   intermediateDoneDirFc.rename(src, target, Options.Rename.NONE);
 }
예제 #2
0
 @Override
 public void renameFile(String source, String dest) throws IOException {
   Path sourcePath = new Path(hdfsDirPath, source);
   Path destPath = new Path(hdfsDirPath, dest);
   fileContext.rename(sourcePath, destPath);
 }
 private void moveToDoneNow(final Path src, final Path target) throws IOException {
   LOG.info("Moving " + src.toString() + " to " + target.toString());
   intermediateDoneDirFc.rename(src, target, Options.Rename.NONE);
 }