protected void createTable(String tableName, String[] families) throws IOException {
    Connection connection = null;
    Admin admin = null;
    try {
      connection = ConnectionFactory.createConnection(getHbaseConf());
      admin = connection.getAdmin();
      HTableDescriptor tableDesc = new HTableDescriptor(TableName.valueOf(tableName));
      for (String family : families) {
        HColumnDescriptor columnDescriptor = new HColumnDescriptor(family);
        tableDesc.addFamily(columnDescriptor);
      }
      admin.createTable(tableDesc);
    } catch (Exception e) {
      e.printStackTrace();
      throw new IllegalStateException(e);
    } finally {
      if (admin != null) {
        admin.close();
      }
      if (connection != null) {
        connection.close();
      }
    }
  }
Allow tests to alter the default MiniCluster configuration.
(requires static initializer block as all setup here is static)
itests/hcatalog-unit/src/test/java/org/apache/hive/hcatalog/hbase/SkeletonHBaseTest.java