use of org.apache.drill.exec.store.hbase.HBaseStoragePluginConfig in project drill by apache.
the class BaseHBaseTest method setupDefaultTestCluster.
@BeforeClass
public static void setupDefaultTestCluster() throws Exception {
boolean isManaged = Boolean.valueOf(System.getProperty("drill.hbase.tests.managed", "true"));
HBaseTestsSuite.configure(isManaged, true);
HBaseTestsSuite.initCluster();
BaseTestQuery.setupDefaultTestCluster();
StoragePluginRegistry pluginRegistry = getDrillbitContext().getStorage();
storagePluginConfig = new HBaseStoragePluginConfig(null, false);
storagePluginConfig.setEnabled(true);
storagePluginConfig.setZookeeperPort(HBaseTestsSuite.getZookeeperPort());
pluginRegistry.put(HBASE_STORAGE_PLUGIN_NAME, storagePluginConfig);
storagePlugin = (HBaseStoragePlugin) pluginRegistry.getPlugin(HBASE_STORAGE_PLUGIN_NAME);
}
Aggregations