use of org.apache.drill.exec.store.openTSDB.OpenTSDBStoragePluginConfig in project drill by axbaretto.
the class TestOpenTSDBPlugin method setup.
@BeforeClass
public static void setup() throws Exception {
portNumber = getFreePortNumber(10_000, 200);
final StoragePluginRegistry pluginRegistry = getDrillbitContext().getStorage();
OpenTSDBStoragePluginConfig storagePluginConfig = new OpenTSDBStoragePluginConfig(String.format("http://localhost:%s", portNumber));
storagePluginConfig.setEnabled(true);
pluginRegistry.createOrUpdate(OpenTSDBStoragePluginConfig.NAME, storagePluginConfig, true);
}
use of org.apache.drill.exec.store.openTSDB.OpenTSDBStoragePluginConfig in project drill by apache.
the class TestOpenTSDBPlugin method testInformationSchemaWrongPluginConfig.
@Test
public void testInformationSchemaWrongPluginConfig() throws Exception {
try (ClusterFixture cluster = ClusterFixture.bareBuilder(dirTestWatcher).build();
ClientFixture client = cluster.clientFixture()) {
int portNumber = QueryTestUtil.getFreePortNumber(10_000, 200);
final StoragePluginRegistry pluginRegistry = cluster.drillbit().getContext().getStorage();
OpenTSDBStoragePluginConfig storagePluginConfig = new OpenTSDBStoragePluginConfig(String.format("http://localhost:%s/", portNumber));
storagePluginConfig.setEnabled(true);
pluginRegistry.put(OpenTSDBStoragePluginConfig.NAME, storagePluginConfig);
String query = "select * from information_schema.`views`";
client.queryBuilder().sql(query).run();
}
}
use of org.apache.drill.exec.store.openTSDB.OpenTSDBStoragePluginConfig in project drill by apache.
the class TestOpenTSDBPlugin method setup.
@BeforeClass
public static void setup() throws Exception {
startCluster(ClusterFixture.builder(dirTestWatcher));
portNumber = QueryTestUtil.getFreePortNumber(10_000, 200);
final StoragePluginRegistry pluginRegistry = cluster.drillbit().getContext().getStorage();
OpenTSDBStoragePluginConfig storagePluginConfig = new OpenTSDBStoragePluginConfig(String.format("http://localhost:%s", portNumber));
storagePluginConfig.setEnabled(true);
pluginRegistry.put(OpenTSDBStoragePluginConfig.NAME, storagePluginConfig);
}
Aggregations