private void createAvroTable() throws IOException {
    final TableName hbaseTable = TableName.valueOf("HiveAvroTable");
    HTableDescriptor htableDesc = new HTableDescriptor(hbaseTable);
    htableDesc.addFamily(new HColumnDescriptor("data".getBytes()));

    try (Admin hbaseAdmin = hbaseConn.getAdmin()) {
      hbaseAdmin.createTable(htableDesc);
      try (Table table = hbaseConn.getTable(hbaseTable)) {
        Put p = new Put("1".getBytes());
        p.add(new KeyValue("1".getBytes(), "data".getBytes(), "frV4".getBytes(),
          createAvroRecordWithNestedTimestamp()));
        table.put(p);
      }
    }
  }
HBaseTestSetup defines HBase-specific test fixtures which are
reused across testcases.
itests/util/src/main/java/org/apache/hadoop/hive/hbase/HBaseTestSetup.java