Exemplo n.º 1
0
 @BeforeClass
 public static void beforeClass() throws Exception {
   HBaseTestUtils.getMiniCluster();
   byte[] tableNameBytes = Bytes.toBytes(tableName);
   byte[][] cfNames = {Bytes.toBytes("meta"), Bytes.toBytes("conflict"), Bytes.toBytes("_s")};
   HBaseTestUtils.util.createTable(tableNameBytes, cfNames);
 }
Exemplo n.º 2
0
 @Before
 public void beforeTest() throws Exception {
   tablePool = new HTablePool(HBaseTestUtils.getConf(), 10);
 }