Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Kafka >> mail # user >> Topic related API


Copy link to this message
-
Re: Topic related API
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, 小宇 <[EMAIL PROTECTED]> wrote:

> 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 why not provide a create topic API? Thanks
>
> ---Sent from Boxer | http://getboxer.com
>
> 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 小宇 <[EMAIL PROTECTED]>:
>
> > Anyone help?
>
> >
>
> >
>
> > 2013/10/30 小宇 <[EMAIL PROTECTED]>
>
> >
>
> >> 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 regards!
>
> >>
>
>
>
>
>
>
>
> --
> Thanks,
>
> Viktor
>
>
--
-- Guozhang