static void setOriginalLocation(Partition partition, String loc) {
    Map<String, String> params = partition.getParameters();
    if (loc == null) {
      params.remove(hive_metastoreConstants.ORIGINAL_LOCATION);
    } else {
      params.put(hive_metastoreConstants.ORIGINAL_LOCATION, loc);
    }
  }
Sets original location of partition which is to be archived.
ql/src/java/org/apache/hadoop/hive/ql/ddl/table/storage/archive/AlterTableArchiveUtils.java