@Deprecated
  public CompactionResponse compact2(String dbname, String tableName, String partName, String compactType,
                                     Map<String, String> tblproperties)
      throws HiveException {
      CompactionType cr;
      if ("major".equalsIgnoreCase(compactType)) {
        cr = CompactionType.MAJOR;
      } else if ("minor".equalsIgnoreCase(compactType)) {
        cr = CompactionType.MINOR;
      } else {
        throw new RuntimeException("Unknown compaction type " + compactType);
      }
      CompactionRequest request = new CompactionRequest(dbname, tableName, cr);
      request.setPartitionname(partName);
      request.setProperties(tblproperties);
      return compact(request);
  }
Enqueue a compaction request.  Only 1 compaction for a given resource (db/table/partSpec) can
be scheduled/running at any given time.
@param dbname name of the database, if null default will be used.
@param tableName name of the table, cannot be null
@param partName name of the partition, if null table will be compacted (valid only for
                non-partitioned tables).
@param compactType major or minor
@param tblproperties the list of tblproperties to overwrite for this compaction
@return id of new request or id already existing request for specified resource
@throws HiveException
@deprecated use {@link #compact(CompactionRequest)}
ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java