We don't have an official client api for creating topics yet. You can try instantiating kafka.admin.CreateTopicCommand$ and use the following method:
createTopic(zkClient: ZkClient, topic: String, numPartitions: Int = 1, replicationFactor: Int = 1, replicaAssignmentStr: String = "")
To instantiate zkClient, do zkClient = new ZkClient(zkConnect, 30000, 30000, ZKStringSerializer)
Jun On Tue, Nov 5, 2013 at 11:24 AM, <[EMAIL PROTECTED]> wrote:
NEW: Monitor These Apps!
Apache Lucene, Apache Solr and all other Apache Software Foundation projects and their respective logos are trademarks of the Apache Software Foundation.
Elasticsearch, Kibana, Logstash, and Beats are trademarks of Elasticsearch BV, registered in the U.S. and in other countries. This site and Sematext Group is in no way affiliated with Elasticsearch BV.
Service operated by Sematext