use of io.hetu.core.plugin.hbase.connector.HBaseConnectorMetadataFactory in project hetu-core by openlookeng.
the class TestHBase method setUp.
/**
* setUp
*/
@BeforeClass
public void setUp() {
hCConf.setZkClientPort("2181");
hCConf.setZkQuorum("zk1");
hetuMetastore = new TestingHetuMetastore();
table = TestUtils.createHBaseTableHandle();
schemaTableName = new SchemaTableName("hbase", "test_table");
hconn = new TestHBaseClientConnection(hCConf, hetuMetastore.getHetuMetastore());
hconn.createConnection();
session = new TestingConnectorSession("root");
hcm = new HBaseConnectorMetadata(hconn);
hConnector = new HBaseConnector(new HBaseConnectorMetadataFactory(hconn, hCConf), new HBaseSplitManager(hconn), new HBasePageSinkProvider(hconn), new HBasePageSourceProvider(new HBaseRecordSetProvider(hconn), hconn), Optional.empty(), null);
}
use of io.hetu.core.plugin.hbase.connector.HBaseConnectorMetadataFactory in project hetu-core by openlookeng.
the class TestHBase method testMetaFactoryCreate.
/**
* testMetaFactoryCreate
*/
@Test
public void testMetaFactoryCreate() {
HBaseConnectorMetadataFactory hmf = new HBaseConnectorMetadataFactory(hconn, hCConf);
hmf.create();
// new HBaseConnectorMetadataFactory without hbaseConfig
HBaseConnectorMetadataFactory hmfWithoutHcon = new HBaseConnectorMetadataFactory(hconn, hCConf);
hmfWithoutHcon.create();
}
Aggregations