Package com.cloudera.oryx.zk

Examples of com.cloudera.oryx.zk.LocalZKServer


  @Test
  public void testProduceConsume() throws Exception {
    int zkPort = IOUtils.chooseFreePort();
    int kafkaBrokerPort = IOUtils.chooseFreePort();
    try (LocalZKServer localZKServer = new LocalZKServer(zkPort);
         LocalKafkaBroker localKafkaBroker = new LocalKafkaBroker(kafkaBrokerPort, zkPort)) {

      localZKServer.start();
      localKafkaBroker.start();

      KafkaUtils.deleteTopic("localhost", zkPort, TOPIC);
      KafkaUtils.maybeCreateTopic("localhost", zkPort, TOPIC);
View Full Code Here


    speedCheckpointDir = getTempDir().resolve("speed-checkpoint");
  }

  protected final void startMessageQueue() throws IOException, InterruptedException {
    log.info("Starting local test Zookeeper server");
    localZKServer = new LocalZKServer(localZKPort);
    localZKServer.start();
    log.info("Starting local Kafka broker");
    localKafkaBroker = new LocalKafkaBroker(localKafkaBrokerPort, localZKPort);
    localKafkaBroker.start();
    KafkaUtils.deleteTopic("localhost", localZKPort, INPUT_TOPIC);
View Full Code Here

TOP

Related Classes of com.cloudera.oryx.zk.LocalZKServer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.