<?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: Is there a way to change compression level in Gzip in GzipCodec ? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-change-compression-level-in-Gzip-in/m-p/96171#M9558</link>
    <description>&lt;P&gt;@ravi@hortonworks.com&lt;/P&gt;&lt;P&gt;Ravi, &lt;A target="_blank" href="https://issues.apache.org/jira/browse/HADOOP-5879"&gt;This&lt;/A&gt; is interesting find&lt;/P&gt;</description>
    <pubDate>Thu, 29 Oct 2015 05:36:16 GMT</pubDate>
    <dc:creator>nsabharwal</dc:creator>
    <dc:date>2015-10-29T05:36:16Z</dc:date>
    <item>
      <title>Is there a way to change compression level in Gzip in GzipCodec ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-change-compression-level-in-Gzip-in/m-p/96169#M9556</link>
      <description>&lt;P&gt;Looking at the code, it looks like GZipCodec uses Deflater.DEFAULT_COMPRESSION. Is there a way to tweak compression levels of Gzip for mapreduce output? &lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:46:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-change-compression-level-in-Gzip-in/m-p/96169#M9556</guid>
      <dc:creator>ravi1</dc:creator>
      <dc:date>2022-09-16T09:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to change compression level in Gzip in GzipCodec ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-change-compression-level-in-Gzip-in/m-p/96170#M9557</link>
      <description>&lt;P&gt;Looking at &lt;A href="https://issues.apache.org/jira/browse/HADOOP-5879"&gt;HADOOP-5879&lt;/A&gt; it seems you can.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2015 04:38:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-change-compression-level-in-Gzip-in/m-p/96170#M9557</guid>
      <dc:creator>deepesh1</dc:creator>
      <dc:date>2015-10-29T04:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to change compression level in Gzip in GzipCodec ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-change-compression-level-in-Gzip-in/m-p/96171#M9558</link>
      <description>&lt;P&gt;@ravi@hortonworks.com&lt;/P&gt;&lt;P&gt;Ravi, &lt;A target="_blank" href="https://issues.apache.org/jira/browse/HADOOP-5879"&gt;This&lt;/A&gt; is interesting find&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2015 05:36:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-change-compression-level-in-Gzip-in/m-p/96171#M9558</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-10-29T05:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to change compression level in Gzip in GzipCodec ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-change-compression-level-in-Gzip-in/m-p/96172#M9559</link>
      <description>&lt;P&gt;Interesting find. It is still not clear how we can send this configuration for mapreduce output. Right now, we just specify Codec. &lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2015 05:48:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-change-compression-level-in-Gzip-in/m-p/96172#M9559</guid>
      <dc:creator>ravi1</dc:creator>
      <dc:date>2015-10-29T05:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to change compression level in Gzip in GzipCodec ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-change-compression-level-in-Gzip-in/m-p/96173#M9560</link>
      <description>&lt;P&gt;I agree. I am trying to reach out to the contributors on that thread. I found this &lt;A target="_blank" href="http://kickstarthadoop.blogspot.com/2012/02/use-compression-with-mapreduce.html"&gt;article&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Let me know if that helps to being with the customization on compression.&lt;/P&gt;&lt;P&gt;@ravi@hortonworks.com&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2015 17:19:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-change-compression-level-in-Gzip-in/m-p/96173#M9560</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-10-29T17:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to change compression level in Gzip in GzipCodec ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-change-compression-level-in-Gzip-in/m-p/96174#M9561</link>
      <description>&lt;P&gt;Going through the code, I found the way to set GzipCodec compression level. &lt;/P&gt;&lt;P&gt;Right now, GzipCodec supports BEST_COMPRESSION, BEST_SPEED, NO_COMPRESSION and DEFAULT. Gzip itself supports 1-9 compression levels. But GzipCodec can use only BEST_COMPRESSION(9), BEST_SPEED(1) and DEFAULT (6). You can set them by passing zlib.compress.level = BEST_SPEED or BEST_COMRPESSION.&lt;/P&gt;&lt;P&gt;However, looking at numbers in our tests, a compression level of 4 seems to be best compression per CPU time. This is not possible right now to set level 4. &lt;/P&gt;&lt;P&gt;P.S. HDP 2.4 onwards, you can add other compression levels like 4. &lt;A href="https://issues.apache.org/jira/browse/HADOOP-12794" target="_blank"&gt;https://issues.apache.org/jira/browse/HADOOP-12794&lt;/A&gt; has more details. &lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2015 12:24:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-change-compression-level-in-Gzip-in/m-p/96174#M9561</guid>
      <dc:creator>ravi1</dc:creator>
      <dc:date>2015-11-02T12:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to change compression level in Gzip in GzipCodec ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-change-compression-level-in-Gzip-in/m-p/96175#M9562</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/216/ravi.html" nodeid="216"&gt;@ravi@hortonworks.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2015 19:58:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-change-compression-level-in-Gzip-in/m-p/96175#M9562</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-11-02T19:58:26Z</dc:date>
    </item>
  </channel>
</rss>

