public static Database resolveDatabase(HiveConf conf, String dbName) throws MetaException, NoSuchObjectException {
    try {
      return getMSForConf(conf).getDatabase(MetaStoreUtils.getDefaultCatalog(conf), dbName);
    } catch (NoSuchObjectException e) {
      LOG.error("Unable to find database {}, {}", dbName, e.getMessage());
      throw e;
    }
  }
Get the compactor queue name if it's defined.
@param conf global hive conf
@param ci compaction info object
@param table instance of table
@return name of the queue
ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/CompactorUtil.java