Package com.cloudera.oryx.zk

Examples of com.cloudera.oryx.zk.LocalZKServer.start()


    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

TOP
Copyright © 2018 www.massapi.com. 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.