<?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 define topic retention with kafka? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-define-topic-retention-with-kafka/m-p/222673#M72557</link>
    <description>&lt;P&gt;Thank you so much for the help, I appreciate it.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Dec 2017 23:00:33 GMT</pubDate>
    <dc:creator>xavwebmaster</dc:creator>
    <dc:date>2017-12-11T23:00:33Z</dc:date>
    <item>
      <title>How to define topic retention with kafka?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-define-topic-retention-with-kafka/m-p/222671#M72555</link>
      <description>&lt;P&gt;Hello, everybody. &lt;/P&gt;&lt;P&gt;Someone can tell me if it is possible to determine the retention of kafka topics individually and not globally. &lt;/P&gt;&lt;P&gt;In Ambari I have found the "log.retention.hours" option, but it applies to all topics and I would be interested in having a different configuration for the different topics I have. &lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 21:04:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-define-topic-retention-with-kafka/m-p/222671#M72555</guid>
      <dc:creator>xavwebmaster</dc:creator>
      <dc:date>2017-12-11T21:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to define topic retention with kafka?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-define-topic-retention-with-kafka/m-p/222672#M72556</link>
      <description>&lt;P&gt;Hello Lanic,&lt;/P&gt;&lt;P&gt;while I have not yet tried to configure it on topic level, this is possible according to the documentation.&lt;/P&gt;&lt;P&gt;Here is the documentation: &lt;A href="https://kafka.apache.org/documentation/#topicconfigs"&gt;https://kafka.apache.org/documentation/#topicconfigs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In principal you can use the parameter retention.ms on topic level. It should override the global server settings coming from log.retention.ms for the topic when you provide them. Not sure if retention.hours would be possible as well.&lt;/P&gt;&lt;P&gt;You can set them during the topic creation, or change it later:&lt;/P&gt;&lt;PRE&gt;bin/kafka-configs.sh --zookeeper localhost:2181  --entity-type topics --entity-name my-topic --alter --add-config retention.ms=128000
&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Dec 2017 22:25:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-define-topic-retention-with-kafka/m-p/222672#M72556</guid>
      <dc:creator>arald</dc:creator>
      <dc:date>2017-12-11T22:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to define topic retention with kafka?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-define-topic-retention-with-kafka/m-p/222673#M72557</link>
      <description>&lt;P&gt;Thank you so much for the help, I appreciate it.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 23:00:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-define-topic-retention-with-kafka/m-p/222673#M72557</guid>
      <dc:creator>xavwebmaster</dc:creator>
      <dc:date>2017-12-11T23:00:33Z</dc:date>
    </item>
  </channel>
</rss>

