<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: how to force delete topic from kafka in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-force-delete-topic-from-kafka/m-p/214534#M72075</link>
    <description>&lt;P&gt;Is topic deletion enabled at the broker level (delete.topic.enable=true) in the entire cluster, and did you restart it if you did enable it? &lt;/P&gt;&lt;P&gt;Maybe since the disk is full, Kafka and related services are refusing to start. Have you verified there are such processes running on the machine? &lt;/P&gt;&lt;P&gt;The nuclear, manual option would be to delete the topic data from the broker, but you must also purge the Zookeeper records for this topic&lt;/P&gt;</description>
    <pubDate>Sat, 02 Dec 2017 07:22:07 GMT</pubDate>
    <dc:creator>JordanMoore</dc:creator>
    <dc:date>2017-12-02T07:22:07Z</dc:date>
    <item>
      <title>how to force delete topic from kafka</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-force-delete-topic-from-kafka/m-p/214533#M72074</link>
      <description>&lt;P&gt;we do the following steps in order to delete the topic -  &lt;STRONG&gt;hgpo.llo.prmt.processed&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;but even after &lt;STRONG&gt;12 hours&lt;/STRONG&gt; topics folders still not deleted from /var/kafka/kafka-logs&lt;/P&gt;&lt;P&gt;note - we set - &lt;STRONG&gt;&lt;EM&gt;delete.topic.enable=true&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;hkafka01 kafka-logs]# /usr/hdp/current/kafka-broker/bin/kafka-topics.sh --zookeeper master01:2181 --alter --topic hgpo.llo.prmt.processed--config retention.ms=1000

WARNING: Altering topic configuration from this script has been deprecated and may be removed in future releases. Going forward, please use kafka-configs.sh for this functionality Updated config for topic "hgpo.llo.prmt.processedd"

kafka01 kafka-logs]# /usr/hdp/current/kafka-broker/bin/kafka-topics.sh --zookeeper master01:2181 --delete --topic hgpo.llo.prmt.processed 

Topic hgpo.llo.prmt.processed is already marked for deletion.&lt;/PRE&gt;&lt;P&gt;how to force the topic deletion ?&lt;/P&gt;&lt;P&gt;on  kafka machine ( production machine ) , we see that: ( &lt;STRONG&gt;no free space&lt;/STRONG&gt; )&lt;/P&gt;&lt;PRE&gt;/dev/sdb                 15500450528 15500434144         0 100% /var/kafka&lt;/PRE&gt;&lt;P&gt;and under &lt;STRONG&gt;/var/kafka/kafka-logs , &lt;/STRONG&gt;we  still see all topic folders (huge size) as example: ( down )&lt;/P&gt;&lt;P&gt;so is it possible just to remove these folders as example -  by &lt;STRONG&gt;rm -rf  &lt;/STRONG&gt;&lt;STRONG&gt; hgpo.llo.prmt.processed-28&lt;/STRONG&gt;   ?&lt;/P&gt;&lt;P&gt;under&lt;STRONG&gt; &lt;/STRONG&gt;&lt;STRONG&gt;/var/kafka/kafka-logs&lt;/STRONG&gt; we have many topic folders as :&lt;/P&gt;&lt;PRE&gt;117G hgpo.llo.prmt.processed-28 
117G hgpo.llo.prmt.processed-29
117G hgpo.llo.prmt.processed-3
117G hgpo.llo.prmt.processed-30
117G hgpo.llo.prmt.processed-31
117G hgpo.llo.prmt.processed-32
.
.
.
.
.

&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Dec 2017 19:17:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-force-delete-topic-from-kafka/m-p/214533#M72074</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-12-01T19:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to force delete topic from kafka</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-force-delete-topic-from-kafka/m-p/214534#M72075</link>
      <description>&lt;P&gt;Is topic deletion enabled at the broker level (delete.topic.enable=true) in the entire cluster, and did you restart it if you did enable it? &lt;/P&gt;&lt;P&gt;Maybe since the disk is full, Kafka and related services are refusing to start. Have you verified there are such processes running on the machine? &lt;/P&gt;&lt;P&gt;The nuclear, manual option would be to delete the topic data from the broker, but you must also purge the Zookeeper records for this topic&lt;/P&gt;</description>
      <pubDate>Sat, 02 Dec 2017 07:22:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-force-delete-topic-from-kafka/m-p/214534#M72075</guid>
      <dc:creator>JordanMoore</dc:creator>
      <dc:date>2017-12-02T07:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to force delete topic from kafka</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-force-delete-topic-from-kafka/m-p/214535#M72076</link>
      <description>&lt;DIV&gt;@Jordan - regrading what you said purge the Zookeeper records :&lt;/DIV&gt;&lt;DIV&gt;do you mean to delete the topic by rmr /brokers/topics/hgpo.llo.prmt.processed from the Zc server&lt;BR /&gt; &lt;/DIV&gt;</description>
      <pubDate>Sun, 03 Dec 2017 03:00:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-force-delete-topic-from-kafka/m-p/214535#M72076</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-12-03T03:00:23Z</dc:date>
    </item>
  </channel>
</rss>

