Package com.cloudera.oryx.kafka.util

Examples of com.cloudera.oryx.kafka.util.LocalKafkaBroker


  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);
    KafkaUtils.deleteTopic("localhost", localZKPort, UPDATE_TOPIC);
    KafkaUtils.maybeCreateTopic("localhost", localZKPort, INPUT_TOPIC);
    KafkaUtils.maybeCreateTopic("localhost", localZKPort, UPDATE_TOPIC);
View Full Code Here

TOP

Related Classes of com.cloudera.oryx.kafka.util.LocalKafkaBroker

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.