Search in sources :

Example 1 with HBaseStoragePluginConfig

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);
}
Also used : StoragePluginRegistry(org.apache.drill.exec.store.StoragePluginRegistry) HBaseStoragePluginConfig(org.apache.drill.exec.store.hbase.HBaseStoragePluginConfig) BeforeClass(org.junit.BeforeClass)

Aggregations

StoragePluginRegistry (org.apache.drill.exec.store.StoragePluginRegistry)1 HBaseStoragePluginConfig (org.apache.drill.exec.store.hbase.HBaseStoragePluginConfig)1 BeforeClass (org.junit.BeforeClass)1