You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by rafeeq s <ra...@gmail.com> on 2014/06/03 13:47:41 UTC

How to delete Topic in kafka 0.8.1 ?

I am using Kafka 0.8.1 and I tried to execute Topic delete command but
still Topic list showing that specific Topic.

Topic Delete commad which i used:

*bin/kafka-topics.sh --zookeeper zk_host:port/chroot --delete --topic
my_topic_name*

How can i verify that my_topic is deleted ?

Is there specific steps to delete Topic in Kafka 0.8.1 ?

Thanks in advance!

Re: How to delete Topic in kafka 0.8.1 ?

Posted by Guozhang Wang <wa...@gmail.com>.
For now deleting topics would be a bit tedious and you need to stop the
brokers during the deletion. Here is what you can do:

1. Stop the brokers.
2. Delete the partition folders for this topic on all brokers.
3. Delete the topic-partition znode in ZK under the /brokers path.
4. Restart the brokers.

Guozhang


On Tue, Jun 3, 2014 at 6:32 AM, François Langelier <f....@gmail.com>
wrote:

> There is probably some steps, but unfortunately I'm not too sure about them
> so I prefer to kept my mouth shut :)
>
> But from what I read in the link I sent you, even if it will be only
> available in the next release, there is a patch available and the code has
> been commit to trunk
> https://issues.apache.org/jira/browse/KAFKA-1397
>
>
> François Langelier
> Étudiant en génie Logiciel - École de Technologie Supérieure
> <http://www.etsmtl.ca/>
> Capitaine Club Capra <http://capra.etsmtl.ca/>
> VP-Communication - CS Games <http://csgames.org> 2014
> Jeux de Génie <http://www.jdgets.com/> 2011 à 2014
> Argentier Fraternité du Piranha <http://fraternitedupiranha.com/>
> 2012-2014
> Comité Organisateur Olympiades ÉTS 2012
> Compétition Québécoise d'Ingénierie 2012 - Compétition Senior
>
>
> On 3 June 2014 09:17, rafeeq s <ra...@gmail.com> wrote:
>
> > Thanks François,
> >
> > Then how we can delete topics in kafka 0.8.1 ?
> >
> > Is there any procedure/steps to delete topic ?
> >
> > Thanks for your kind response!
> >
> >
> > On Tue, Jun 3, 2014 at 3:57 PM, François Langelier <
> f.langelier@gmail.com>
> > wrote:
> >
> > > The delete topic isn't working ATM
> > >
> > > I think it will be available in the next release
> > > https://issues.apache.org/jira/browse/KAFKA-1397
> > >
> > >
> > >
> > >
> > > François Langelier
> > > Étudiant en génie Logiciel - École de Technologie Supérieure
> > > <http://www.etsmtl.ca/>
> > > Capitaine Club Capra <http://capra.etsmtl.ca/>
> > > VP-Communication - CS Games <http://csgames.org> 2014
> > > Jeux de Génie <http://www.jdgets.com/> 2011 à 2014
> > > Argentier Fraternité du Piranha <http://fraternitedupiranha.com/>
> > > 2012-2014
> > > Comité Organisateur Olympiades ÉTS 2012
> > > Compétition Québécoise d'Ingénierie 2012 - Compétition Senior
> > >
> > >
> > > On 3 June 2014 07:47, rafeeq s <ra...@gmail.com> wrote:
> > >
> > > > I am using Kafka 0.8.1 and I tried to execute Topic delete command
> but
> > > > still Topic list showing that specific Topic.
> > > >
> > > > Topic Delete commad which i used:
> > > >
> > > > *bin/kafka-topics.sh --zookeeper zk_host:port/chroot --delete --topic
> > > > my_topic_name*
> > > >
> > > > How can i verify that my_topic is deleted ?
> > > >
> > > > Is there specific steps to delete Topic in Kafka 0.8.1 ?
> > > >
> > > > Thanks in advance!
> > > >
> > >
> >
>



-- 
-- Guozhang

Re: How to delete Topic in kafka 0.8.1 ?

Posted by François Langelier <f....@gmail.com>.
There is probably some steps, but unfortunately I'm not too sure about them
so I prefer to kept my mouth shut :)

But from what I read in the link I sent you, even if it will be only
available in the next release, there is a patch available and the code has
been commit to trunk
https://issues.apache.org/jira/browse/KAFKA-1397


François Langelier
Étudiant en génie Logiciel - École de Technologie Supérieure
<http://www.etsmtl.ca/>
Capitaine Club Capra <http://capra.etsmtl.ca/>
VP-Communication - CS Games <http://csgames.org> 2014
Jeux de Génie <http://www.jdgets.com/> 2011 à 2014
Argentier Fraternité du Piranha <http://fraternitedupiranha.com/> 2012-2014
Comité Organisateur Olympiades ÉTS 2012
Compétition Québécoise d'Ingénierie 2012 - Compétition Senior


On 3 June 2014 09:17, rafeeq s <ra...@gmail.com> wrote:

> Thanks François,
>
> Then how we can delete topics in kafka 0.8.1 ?
>
> Is there any procedure/steps to delete topic ?
>
> Thanks for your kind response!
>
>
> On Tue, Jun 3, 2014 at 3:57 PM, François Langelier <f....@gmail.com>
> wrote:
>
> > The delete topic isn't working ATM
> >
> > I think it will be available in the next release
> > https://issues.apache.org/jira/browse/KAFKA-1397
> >
> >
> >
> >
> > François Langelier
> > Étudiant en génie Logiciel - École de Technologie Supérieure
> > <http://www.etsmtl.ca/>
> > Capitaine Club Capra <http://capra.etsmtl.ca/>
> > VP-Communication - CS Games <http://csgames.org> 2014
> > Jeux de Génie <http://www.jdgets.com/> 2011 à 2014
> > Argentier Fraternité du Piranha <http://fraternitedupiranha.com/>
> > 2012-2014
> > Comité Organisateur Olympiades ÉTS 2012
> > Compétition Québécoise d'Ingénierie 2012 - Compétition Senior
> >
> >
> > On 3 June 2014 07:47, rafeeq s <ra...@gmail.com> wrote:
> >
> > > I am using Kafka 0.8.1 and I tried to execute Topic delete command but
> > > still Topic list showing that specific Topic.
> > >
> > > Topic Delete commad which i used:
> > >
> > > *bin/kafka-topics.sh --zookeeper zk_host:port/chroot --delete --topic
> > > my_topic_name*
> > >
> > > How can i verify that my_topic is deleted ?
> > >
> > > Is there specific steps to delete Topic in Kafka 0.8.1 ?
> > >
> > > Thanks in advance!
> > >
> >
>

Re: How to delete Topic in kafka 0.8.1 ?

Posted by rafeeq s <ra...@gmail.com>.
Thanks François,

Then how we can delete topics in kafka 0.8.1 ?

Is there any procedure/steps to delete topic ?

Thanks for your kind response!


On Tue, Jun 3, 2014 at 3:57 PM, François Langelier <f....@gmail.com>
wrote:

> The delete topic isn't working ATM
>
> I think it will be available in the next release
> https://issues.apache.org/jira/browse/KAFKA-1397
>
>
>
>
> François Langelier
> Étudiant en génie Logiciel - École de Technologie Supérieure
> <http://www.etsmtl.ca/>
> Capitaine Club Capra <http://capra.etsmtl.ca/>
> VP-Communication - CS Games <http://csgames.org> 2014
> Jeux de Génie <http://www.jdgets.com/> 2011 à 2014
> Argentier Fraternité du Piranha <http://fraternitedupiranha.com/>
> 2012-2014
> Comité Organisateur Olympiades ÉTS 2012
> Compétition Québécoise d'Ingénierie 2012 - Compétition Senior
>
>
> On 3 June 2014 07:47, rafeeq s <ra...@gmail.com> wrote:
>
> > I am using Kafka 0.8.1 and I tried to execute Topic delete command but
> > still Topic list showing that specific Topic.
> >
> > Topic Delete commad which i used:
> >
> > *bin/kafka-topics.sh --zookeeper zk_host:port/chroot --delete --topic
> > my_topic_name*
> >
> > How can i verify that my_topic is deleted ?
> >
> > Is there specific steps to delete Topic in Kafka 0.8.1 ?
> >
> > Thanks in advance!
> >
>

Re: How to delete Topic in kafka 0.8.1 ?

Posted by François Langelier <f....@gmail.com>.
The delete topic isn't working ATM

I think it will be available in the next release
https://issues.apache.org/jira/browse/KAFKA-1397




François Langelier
Étudiant en génie Logiciel - École de Technologie Supérieure
<http://www.etsmtl.ca/>
Capitaine Club Capra <http://capra.etsmtl.ca/>
VP-Communication - CS Games <http://csgames.org> 2014
Jeux de Génie <http://www.jdgets.com/> 2011 à 2014
Argentier Fraternité du Piranha <http://fraternitedupiranha.com/> 2012-2014
Comité Organisateur Olympiades ÉTS 2012
Compétition Québécoise d'Ingénierie 2012 - Compétition Senior


On 3 June 2014 07:47, rafeeq s <ra...@gmail.com> wrote:

> I am using Kafka 0.8.1 and I tried to execute Topic delete command but
> still Topic list showing that specific Topic.
>
> Topic Delete commad which i used:
>
> *bin/kafka-topics.sh --zookeeper zk_host:port/chroot --delete --topic
> my_topic_name*
>
> How can i verify that my_topic is deleted ?
>
> Is there specific steps to delete Topic in Kafka 0.8.1 ?
>
> Thanks in advance!
>