@Override
  public void commitDropTable(Table tbl, boolean deleteData) throws MetaException {
    try {
      String tableName = getHBaseTableName(tbl);
      boolean isPurge = !MetaStoreUtils.isExternalTable(tbl) || MetaStoreUtils.isExternalTablePurge(tbl);
      if (deleteData && isPurge) {
        LOG.info("Dropping with purge all the data for data source {}", tableName);
        if (getHBaseAdmin().tableExists(TableName.valueOf(tableName))) {
          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