<?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 clean up / purge Kafka queues? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-clean-up-purge-Kafka-queues/m-p/95727#M9102</link>
    <description>&lt;P&gt;Changing a retention period on the topic only marks data segments for deletion. The actual thread which performs an action kicks in every 5 minutes (the default for &lt;STRONG&gt;log.retention.check.interval.ms&lt;/STRONG&gt;). Not sure the OP wants to wait up to 5 minutes to delete data.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Oct 2015 01:25:22 GMT</pubDate>
    <dc:creator>andrewg</dc:creator>
    <dc:date>2015-10-22T01:25:22Z</dc:date>
    <item>
      <title>How to clean up / purge Kafka queues?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-clean-up-purge-Kafka-queues/m-p/95721#M9096</link>
      <description>&lt;P&gt;&lt;STRONG&gt;What is the best way to clean / purge the messages in a Kafka queue (irrespective of whether they have been read or not)?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Scenario is that in a dev environment a dummy publisher is pushing messages to a Kafka queue from which a storm topology is reading the messages. If a change has to be made in the publisher such that the current messages in the queue (read or not) are all invalid, so we need to purge those messages and start again. &lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2015 21:01:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-clean-up-purge-Kafka-queues/m-p/95721#M9096</guid>
      <dc:creator>bsaini</dc:creator>
      <dc:date>2015-10-21T21:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to clean up / purge Kafka queues?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-clean-up-purge-Kafka-queues/m-p/95722#M9097</link>
      <description>&lt;P&gt;For the .8 we are using following&lt;/P&gt;&lt;P&gt;Shutdown Kafka Broker&lt;/P&gt;&lt;P&gt;rm -rf /data/kafka-logs/&amp;lt;topic/Partition_name&amp;gt;&lt;/P&gt;&lt;P&gt;and restart.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2015 21:02:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-clean-up-purge-Kafka-queues/m-p/95722#M9097</guid>
      <dc:creator>Jagatheeshr</dc:creator>
      <dc:date>2015-10-21T21:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to clean up / purge Kafka queues?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-clean-up-purge-Kafka-queues/m-p/95723#M9098</link>
      <description>&lt;P&gt;In HDP 2.3 you can delete the topic via a standard admin command:&lt;/P&gt;&lt;PRE&gt;bin/kafka-topics.sh --zookeeper 127.0.0.1:2181 --delete --topic someTopic
&lt;/PRE&gt;&lt;P&gt;For this to work, one has to make sure the &lt;STRONG&gt;delete.topic.enable&lt;/STRONG&gt; flag is set to true (check it via Ambari).&lt;/P&gt;&lt;P&gt;Once deleted, any new message posted to the topic will re-create it, assuming the &lt;STRONG&gt;auto.create.topics.enable&lt;/STRONG&gt; property is set to true (it might be disabled in production, same as delete one above). If that's the case, then the admin must create the topic again:&lt;/P&gt;&lt;PRE&gt;bin/kafka-topics.sh --zookeeper 127.0.0.1:2181 --create --topic someTopic --partitions 10 --replication-factor 3 &lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Oct 2015 21:14:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-clean-up-purge-Kafka-queues/m-p/95723#M9098</guid>
      <dc:creator>andrewg</dc:creator>
      <dc:date>2015-10-21T21:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to clean up / purge Kafka queues?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-clean-up-purge-Kafka-queues/m-p/95724#M9099</link>
      <description>&lt;P&gt;Wouldn't that cause all kinds of issues with zookeeper state? Besides, the data replicas will be on multiple nodes.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2015 21:15:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-clean-up-purge-Kafka-queues/m-p/95724#M9099</guid>
      <dc:creator>andrewg</dc:creator>
      <dc:date>2015-10-21T21:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to clean up / purge Kafka queues?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-clean-up-purge-Kafka-queues/m-p/95725#M9100</link>
      <description>&lt;P&gt;the topic will still exist until you push new messages to this topic and then follow @AndrewGrande answer below&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2015 22:36:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-clean-up-purge-Kafka-queues/m-p/95725#M9100</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2015-10-21T22:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to clean up / purge Kafka queues?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-clean-up-purge-Kafka-queues/m-p/95726#M9101</link>
      <description>&lt;P&gt;I had better luck expunging the message by changing the retention time and then resetting back.&lt;/P&gt;&lt;P&gt;&lt;A href="http://kafka-topics.sh"&gt;kafka-topics.sh&lt;/A&gt; --zookeeper localhost:13003 --alter --topic MyTopic --config retention.ms=1000&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2015 23:43:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-clean-up-purge-Kafka-queues/m-p/95726#M9101</guid>
      <dc:creator>hfaouaz</dc:creator>
      <dc:date>2015-10-21T23:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to clean up / purge Kafka queues?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-clean-up-purge-Kafka-queues/m-p/95727#M9102</link>
      <description>&lt;P&gt;Changing a retention period on the topic only marks data segments for deletion. The actual thread which performs an action kicks in every 5 minutes (the default for &lt;STRONG&gt;log.retention.check.interval.ms&lt;/STRONG&gt;). Not sure the OP wants to wait up to 5 minutes to delete data.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2015 01:25:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-clean-up-purge-Kafka-queues/m-p/95727#M9102</guid>
      <dc:creator>andrewg</dc:creator>
      <dc:date>2015-10-22T01:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to clean up / purge Kafka queues?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-clean-up-purge-Kafka-queues/m-p/95728#M9103</link>
      <description>&lt;P&gt;Great info, I am really struggling to understand what happens while consumer reading the messages and rentention time expires for log segment?&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 15:24:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-clean-up-purge-Kafka-queues/m-p/95728#M9103</guid>
      <dc:creator>bhanu_k_chidiga</dc:creator>
      <dc:date>2017-05-26T15:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to clean up / purge Kafka queues?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-clean-up-purge-Kafka-queues/m-p/95729#M9104</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/173/agrande.html" nodeid="173"&gt;@Andrew Grande&lt;/A&gt; - When I try to set the log.retention.check.interval configuration setting, I receive an error message stating the following:&lt;/P&gt;&lt;PRE&gt;Error while executing topic command : Unknown topic config name: log.retention.check.interval.ms&lt;/PRE&gt;&lt;P&gt;Has this configuration setting been deprecated?&lt;/P&gt;&lt;P&gt;This is the command that I run:&lt;/P&gt;&lt;PRE&gt;kafka-topics --zookeeper localhost:2181 --alter --entity-type topics --entity-name myTopic --add-config log.retention.check.interval.ms=5000&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Mar 2018 23:31:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-clean-up-purge-Kafka-queues/m-p/95729#M9104</guid>
      <dc:creator>steven_a_royste</dc:creator>
      <dc:date>2018-03-13T23:31:39Z</dc:date>
    </item>
  </channel>
</rss>

