You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by 小宇 <mo...@gmail.com> on 2013/10/30 10:38:04 UTC
Topic related API
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!
Re: Topic related API
Posted by Guozhang Wang <wa...@gmail.com>.
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, 小宇 <mo...@gmail.com> 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 小宇 <mo...@gmail.com>:
>
> > Anyone help?
>
> >
>
> >
>
> > 2013/10/30 小宇 <mo...@gmail.com>
>
> >
>
> >> 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
Re: Topic related API
Posted by 小宇 <mo...@gmail.com>.
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 小宇 <mo...@gmail.com>:
> Anyone help?
>
>
> 2013/10/30 小宇 <mo...@gmail.com>
>
>> 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
Re: Topic related API
Posted by Viktor Kolodrevskiy <vi...@gmail.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 小宇 <mo...@gmail.com>:
> Anyone help?
>
>
> 2013/10/30 小宇 <mo...@gmail.com>
>
>> 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
Re: Topic related API
Posted by 小宇 <mo...@gmail.com>.
Anyone help?
2013/10/30 小宇 <mo...@gmail.com>
> 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!
>