Kafka topic not being deleted

0 votes
I am using Kafka 0.10.0.1. There are 3 brokers in the cluster. I issued delete command to delete nearly 5 topics. I had checked, there are no consumers registered on those topics.

However, it's been more than 5 hours and those topics haven't yet been deleted. They are just marked for deletion. What can be the reason?

Can someone help?
Jul 9, 2018 in Apache Kafka by Shubham
• 13,110 points
456 views

1 answer to this question.

0 votes

By default in Kafka version 0.10, delete.topic.enable is false. 

To be able to delete topics, you need to set delete.topic.enable to true in the broker properties file.

Note that starting from 1.0.0, this is now enabled by default.

Hope it will work for you.

answered Jul 9, 2018 by nitinrawat895
• 10,030 points

Related Questions In Apache Kafka

0 votes
1 answer

Not able to fetch messages from Kafka cluster

You need to add the hostname in ...READ MORE

answered Jul 9, 2018 in Apache Kafka by Shubham
• 13,110 points
431 views
0 votes
11 answers

How can I delete all the messages from a Kafka topic?

Add one line to server.properties file under ...READ MORE

answered Nov 27, 2018 in Apache Kafka by Lavanya
22,113 views
0 votes
1 answer

How to delete a topic in Kafka 0.8.1.1?

Deleting topic isn't always working in 0.8.1.1 Deletion ...READ MORE

answered Sep 4, 2018 in Apache Kafka by nitinrawat895
• 10,030 points
96 views
0 votes
1 answer

Not able to download Kafka using curl

The output to download this is in ...READ MORE

answered Feb 21 in Apache Kafka by Omkar
• 67,120 points
138 views
0 votes
1 answer

Is Kafka and Zookeeper are required in a Big Data Cluster?

Apache Kafka is one of the components ...READ MORE

answered Mar 22, 2018 in Big Data Hadoop by nitinrawat895
• 10,030 points
313 views
0 votes
1 answer

which one to choose for log analysis?

It is not about that you can ...READ MORE

answered Apr 6, 2018 in Big Data Hadoop by nitinrawat895
• 10,030 points
27 views
0 votes
1 answer

How to sync Hadoop configuration files to multiple nodes?

For syncing Hadoop configuration files, you have ...READ MORE

answered Jun 21, 2018 in Big Data Hadoop by HackTheCode
133 views
0 votes
1 answer

How can I download only hdfs and not hadoop?

No, you cannot download HDFS alone because ...READ MORE

answered Mar 15, 2018 in Big Data Hadoop by nitinrawat895
• 10,030 points
66 views
0 votes
1 answer

Is there any change in consumer offsets if a new partition(s) is added to a Kafka topic?

Yes, it stays the same. An offset is ...READ MORE

answered Jul 9, 2018 in Apache Kafka by nitinrawat895
• 10,030 points
201 views
0 votes
1 answer

How to purge Kafka Topic?

For your case what you can do ...READ MORE

answered Sep 4, 2018 in Apache Kafka by nitinrawat895
• 10,030 points
245 views