private boolean moveFile(final FileSystem srcFs, final Path srcf, final FileSystem destFs, final Path destf,
      final Configuration conf, final boolean canRename) throws IOException {
    LOG.debug("Moving src: {}, to dest: {}", srcf, destf);
    boolean moved;
    if (canRename) {
      destFs.mkdirs(destf.getParent());
      moved = srcFs.rename(srcf, destf);
    } else {
      moved = FileUtil.copy(srcFs, srcf, destFs, destf, true, false, conf);
    }
    return moved;
  }
Bulk move files from source to destination.
@param srcFs the source filesystem where the source files are
@param destFs the destionation filesystem where the destionation files are
@param pairs list of pairs of <source_path, destination_path>, move source_path to destination_path
@throws java.io.IOException
hcatalog/core/src/main/java/org/apache/hive/hcatalog/mapreduce/FileOutputCommitterContainer.java