use of org.apache.drill.test.ClusterFixtureBuilder in project drill by apache.
the class TestCompressedFiles method setup.
@BeforeClass
public static void setup() throws Exception {
ClusterFixtureBuilder builder = ClusterFixture.builder(dirTestWatcher);
startCluster(builder);
fs = ExecTest.getLocalFileSystem();
Configuration conf = fs.getConf();
conf.set(CommonConfigurationKeys.IO_COMPRESSION_CODECS_KEY, ZipCodec.class.getCanonicalName());
factory = new CompressionCodecFactory(conf);
}
use of org.apache.drill.test.ClusterFixtureBuilder in project drill by apache.
the class KafkaTestBase method setUpBeforeClass.
@BeforeClass
public static void setUpBeforeClass() throws Exception {
// Make sure this test is only running as part of the suit
Assume.assumeTrue(TestKafkaSuit.isRunningSuite());
ClusterFixtureBuilder builder = ClusterFixture.builder(dirTestWatcher);
startCluster(builder);
TestKafkaSuit.initKafka();
initKafkaStoragePlugin(TestKafkaSuit.embeddedKafkaCluster);
}
use of org.apache.drill.test.ClusterFixtureBuilder in project drill by apache.
the class TestLargeFileCompilation method setUp.
@BeforeClass
public static void setUp() throws Exception {
ClusterFixtureBuilder builder = ClusterFixture.builder(dirTestWatcher).configProperty(ExecConstants.USER_RPC_TIMEOUT, 5_000);
startCluster(builder);
}
use of org.apache.drill.test.ClusterFixtureBuilder in project drill by apache.
the class TestConvertCountToDirectScan method setup.
@BeforeClass
public static void setup() throws Exception {
ClusterFixtureBuilder builder = ClusterFixture.builder(dirTestWatcher);
dirTestWatcher.copyResourceToRoot(Paths.get("directcount.parquet"));
startCluster(builder);
}
use of org.apache.drill.test.ClusterFixtureBuilder in project drill by apache.
the class TestMemoryCalculator method getPlanForQuery.
private String getPlanForQuery(String query, long outputBatchSize, long slice_target) throws Exception {
ClusterFixtureBuilder builder = ClusterFixture.builder(dirTestWatcher).setOptionDefault(ExecConstants.OUTPUT_BATCH_SIZE, outputBatchSize).setOptionDefault(ExecConstants.SLICE_TARGET, slice_target);
String plan;
try (ClusterFixture cluster = builder.build();
ClientFixture client = cluster.clientFixture()) {
plan = client.queryBuilder().sql(query).explainJson();
}
return plan;
}
Aggregations