use of org.apache.druid.indexing.kafka.test.TestBroker in project druid by druid-io.
the class KafkaRecordSupplierTest method setupClass.
@BeforeClass
public static void setupClass() throws Exception {
zkServer = new TestingCluster(1);
zkServer.start();
kafkaServer = new TestBroker(zkServer.getConnectString(), null, 1, ImmutableMap.of("num.partitions", "2"));
kafkaServer.start();
}
use of org.apache.druid.indexing.kafka.test.TestBroker in project druid by druid-io.
the class KafkaSupervisorTest method setupClass.
@BeforeClass
public static void setupClass() throws Exception {
zkServer = new TestingCluster(1);
zkServer.start();
kafkaServer = new TestBroker(zkServer.getConnectString(), null, 1, ImmutableMap.of("num.partitions", String.valueOf(NUM_PARTITIONS), "auto.create.topics.enable", String.valueOf(false)));
kafkaServer.start();
kafkaHost = StringUtils.format("localhost:%d", kafkaServer.getPort());
dataSchema = getDataSchema(DATASOURCE);
}
use of org.apache.druid.indexing.kafka.test.TestBroker in project druid by druid-io.
the class KafkaSamplerSpecTest method setupClass.
@BeforeClass
public static void setupClass() throws Exception {
zkServer = new TestingCluster(1);
zkServer.start();
kafkaServer = new TestBroker(zkServer.getConnectString(), null, 1, ImmutableMap.of("num.partitions", "2"));
kafkaServer.start();
}
use of org.apache.druid.indexing.kafka.test.TestBroker in project druid by druid-io.
the class KafkaIndexTaskTest method setupClass.
@BeforeClass
public static void setupClass() throws Exception {
emitter = new ServiceEmitter("service", "host", new NoopEmitter());
emitter.start();
EmittingLogger.registerEmitter(emitter);
zkServer = new TestingCluster(1);
zkServer.start();
kafkaServer = new TestBroker(zkServer.getConnectString(), null, 1, ImmutableMap.of("num.partitions", "2"));
kafkaServer.start();
taskExec = MoreExecutors.listeningDecorator(Executors.newCachedThreadPool(Execs.makeThreadFactory("kafka-task-test-%d")));
}
Aggregations