Re: Topic related API

2013-10-31 Thread Guozhang Wang
Hello, Have you tried the list topic tool? https://cwiki.apache.org/confluence/display/KAFKA/Replication+tools Guozhang On Thu, Oct 31, 2013 at 8:53 AM, 小宇 wrote: > Thanks Viktor,but you may misunderstand what I mean,when I send a > topicMetadataRequest for a none existed topic,Kafka server

Re: Topic related API

2013-10-31 Thread 小宇
Thanks Viktor,but you may misunderstand what I mean,when I send a topicMetadataRequest for a none existed topic,Kafka server can auto create the topic ,but it take time before I can get the metadata of the new topic,so if look up zookeeper to make sure the topic is created.and my question still

Re: Topic related API

2013-10-30 Thread Viktor Kolodrevskiy
Why do you want to get topic list from zookeeper? As alternative you can send TopicMetadataRequest to SimpleConsumer and get TopicMetadataResponse that contains list of topics. Thanks, Viktor 2013/10/30 小宇 : > Anyone help? > > > 2013/10/30 小宇 > >> Hi All, >> >> why not provide CreateTopic and D

Re: Topic related API

2013-10-30 Thread 小宇
Anyone help? 2013/10/30 小宇 > Hi All, > > why not provide CreateTopic and DeleteTopic api, we know when > auto.create.topics.enable set true, kafka can auto create the topic, but > the problem is it always take some time before we can lookup the topic in > zookeeper, will this can be solved in

Topic related API

2013-10-30 Thread 小宇
Hi All, why not provide CreateTopic and DeleteTopic api, we know when auto.create.topics.enable set true, kafka can auto create the topic, but the problem is it always take some time before we can lookup the topic in zookeeper, will this can be solved in the future version of kafka? Thanks! Best