<?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: questions about kafka and compression.type in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/questions-about-kafka-and-compression-type/m-p/349663#M235718</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80158"&gt;@Jarinek&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please check my inline answer to your queries:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) is it possible to alter compression.type on a kafka topic while having applications on the topic running?&lt;BR /&gt;&amp;gt;&amp;gt; Yes, we would recommend stopping the producer and then alert compression type as whenever the Kafka broker gets a compressed batch of messages from a producer. It will decompress the data to validate if the compression type is different at the topic level and producer level and if compression is the same from both sides, then it will write directly to the topic/leader partition.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) What should be expected hard drive saving factor for text records like json (2KB size) and compression.type=gzip.&lt;BR /&gt;&amp;gt;&amp;gt;&amp;nbsp;You should use and test snappy or lz4 for best speed/compression ratio&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) Does it apply to KafkaMirrorMaker only?&lt;BR /&gt;&amp;gt;&amp;gt;&amp;nbsp;Yes, as per the screenshot it will apply for the MM only.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4) Are producer and consumer applications somehow affected, when the global parameter changes.&lt;BR /&gt;&amp;gt;&amp;gt;&amp;nbsp;If you are changing it from the Kafka side, then it should not affect the applications.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;If you found this response assisted with your query, please take a moment to log in and click on&amp;nbsp; KUDOS &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&amp;amp; ”Accept as Solution" below this post.&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Sat, 06 Aug 2022 17:28:10 GMT</pubDate>
    <dc:creator>Babasaheb</dc:creator>
    <dc:date>2022-08-06T17:28:10Z</dc:date>
    <item>
      <title>questions about kafka and compression.type</title>
      <link>https://community.cloudera.com/t5/Support-Questions/questions-about-kafka-and-compression-type/m-p/343345#M233904</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;is it possible to alter compression.type on a kafka topic while having applications on the topic running?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What should be expected hard drive saving factor for text records like json (2KB size) and compression.type=gzip.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In CM, I see a global setting.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jarinek_0-1651842889847.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/34328i6DA0D969BBCD0287/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jarinek_0-1651842889847.png" alt="Jarinek_0-1651842889847.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Does it apply to KafkaMirrorMaker only?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are producer and consumer applications somehow affected, when the global parameter changes.&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;Jaro&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 13:25:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/questions-about-kafka-and-compression-type/m-p/343345#M233904</guid>
      <dc:creator>Jarinek</dc:creator>
      <dc:date>2022-05-06T13:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: questions about kafka and compression.type</title>
      <link>https://community.cloudera.com/t5/Support-Questions/questions-about-kafka-and-compression-type/m-p/349663#M235718</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80158"&gt;@Jarinek&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please check my inline answer to your queries:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) is it possible to alter compression.type on a kafka topic while having applications on the topic running?&lt;BR /&gt;&amp;gt;&amp;gt; Yes, we would recommend stopping the producer and then alert compression type as whenever the Kafka broker gets a compressed batch of messages from a producer. It will decompress the data to validate if the compression type is different at the topic level and producer level and if compression is the same from both sides, then it will write directly to the topic/leader partition.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) What should be expected hard drive saving factor for text records like json (2KB size) and compression.type=gzip.&lt;BR /&gt;&amp;gt;&amp;gt;&amp;nbsp;You should use and test snappy or lz4 for best speed/compression ratio&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) Does it apply to KafkaMirrorMaker only?&lt;BR /&gt;&amp;gt;&amp;gt;&amp;nbsp;Yes, as per the screenshot it will apply for the MM only.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4) Are producer and consumer applications somehow affected, when the global parameter changes.&lt;BR /&gt;&amp;gt;&amp;gt;&amp;nbsp;If you are changing it from the Kafka side, then it should not affect the applications.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;If you found this response assisted with your query, please take a moment to log in and click on&amp;nbsp; KUDOS &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&amp;amp; ”Accept as Solution" below this post.&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Aug 2022 17:28:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/questions-about-kafka-and-compression-type/m-p/349663#M235718</guid>
      <dc:creator>Babasaheb</dc:creator>
      <dc:date>2022-08-06T17:28:10Z</dc:date>
    </item>
  </channel>
</rss>

