@Override
  public void rollbackCreateTable(Table table) throws MetaException {
    String tableName = getHBaseTableName(table);
    boolean isPurge = !MetaStoreUtils.isExternalTable(table) || MetaStoreUtils.isExternalTablePurge(table);
    try {
      if (isPurge && getHBaseAdmin().tableExists(TableName.valueOf(tableName)) && !isCTLT) {
        // we have created an HBase table, so we delete it to roll back;
        if (getHBaseAdmin().isTableEnabled(TableName.valueOf(tableName))) {
          getHBaseAdmin().disableTable(TableName.valueOf(tableName));
        }
        getHBaseAdmin().deleteTable(TableName.valueOf(tableName));
      }
    } catch (IOException ie) {
      throw new MetaException(StringUtils.stringifyException(ie));
    }
  }
MetaHook for HBase. Updates the table data in HBase too. Not thread safe, and cleanup should
be used after usage.
hbase-handler/src/java/org/apache/hadoop/hive/hbase/HBaseMetaHook.java