private void moveOriginalDirToIntermediateDir(Path originalDir, Path intermediateOriginalDir, FileSystem fs)
      throws HiveException {
    // If we get to here, we know that we've archived the partition files, but they may be in the original partition
    // location, or in the intermediate original dir.
    if (!HdfsUtils.pathExists(intermediateOriginalDir, context.getConf())) {
      context.getConsole().printInfo("Moving " + originalDir + " to " + intermediateOriginalDir);
      moveDir(fs, originalDir, intermediateOriginalDir);
    } else {
      context.getConsole().printInfo(intermediateOriginalDir + " already exists. " +
          "Assuming it contains the original files in the partition");
    }
  }
Move the original parent directory to the intermediate original directory if the move hasn't been made already.
ql/src/java/org/apache/hadoop/hive/ql/ddl/table/storage/archive/AlterTableArchiveOperation.java