private void setUpFixtures(HiveConf conf) throws Exception {
    /* We are not starting zookeeper server here because
     * QTestUtil already starts it.
     */
    int zkPort = conf.getInt("hive.zookeeper.client.port", -1);
    conf.set(HConstants.ZOOKEEPER_CLIENT_PORT, Integer.toString(zkPort));
    if ((zkPort == zooKeeperPort) && (hbaseCluster != null)) {
      return;
    }
    zooKeeperPort = zkPort;
    this.tearDown();

    // Fix needed due to dependency for hbase-mapreduce module
    System.setProperty("org.apache.hadoop.hbase.shaded.io.netty.packagePrefix",
        "org.apache.hadoop.hbase.shaded.");

    Configuration hbaseConf = HBaseConfiguration.create(conf);
    // A workaround for HBASE-28908. Should be removed once HBase 2.7.0 is released & HIVE-28740 is fixed.
    hbaseConf.set("hbase.wal.provider", "filesystem");
    util = new HBaseTestingUtility(hbaseConf);

    util.startMiniDFSCluster(1);
    hbaseCluster = util.startMiniHBaseCluster(1, NUM_REGIONSERVERS);
    hbaseConn = util.getConnection();

    // opening the META table ensures that cluster is running
    Table meta = null;
    try {
      meta = hbaseConn.getTable(TableName.META_TABLE_NAME);
    } finally {
      if (meta != null) meta.close();
    }
    createHBaseTable();
    createAvroTable();
  }
HBaseTestSetup defines HBase-specific test fixtures which are
reused across testcases.
itests/util/src/main/java/org/apache/hadoop/hive/hbase/HBaseTestSetup.java