<?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 HDFS Compression along with mapreduce codec a good idea?Any disadvantage of doing this ? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Compression-along-with-mapreduce-codec-a-good-idea-Any/m-p/172181#M42052</link>
    <description />
    <pubDate>Wed, 28 Sep 2016 04:19:51 GMT</pubDate>
    <dc:creator>jigar_patel</dc:creator>
    <dc:date>2016-09-28T04:19:51Z</dc:date>
    <item>
      <title>HDFS Compression along with mapreduce codec a good idea?Any disadvantage of doing this ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Compression-along-with-mapreduce-codec-a-good-idea-Any/m-p/172181#M42052</link>
      <description />
      <pubDate>Wed, 28 Sep 2016 04:19:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Compression-along-with-mapreduce-codec-a-good-idea-Any/m-p/172181#M42052</guid>
      <dc:creator>jigar_patel</dc:creator>
      <dc:date>2016-09-28T04:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: HDFS Compression along with mapreduce codec a good idea?Any disadvantage of doing this ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Compression-along-with-mapreduce-codec-a-good-idea-Any/m-p/172182#M42053</link>
      <description>&lt;P&gt;Not sure of your exact question, but typically it is a good idea to compress the output of your map step in map-reduce jobs.  This is because this data is written to disk and then sent within your cluster to the reducer (shuffle) and the overhead of compressing/decompressing is almost always minimal compared to the large gains from sending over the wire significantly lower data volumes from compressed data.&lt;/P&gt;&lt;P&gt;To set this for all of your jobs, use these configs in mapred-site.xml"&lt;/P&gt;&lt;PRE&gt;&amp;lt;property&amp;gt;
  &amp;lt;name&amp;gt;mapred.compress.map.output&amp;lt;/name&amp;gt;
  &amp;lt;value&amp;gt;true&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt; 
 
&amp;lt;property&amp;gt; 
  &amp;lt;name&amp;gt;mapred.map.output.compression.codec&amp;lt;/name&amp;gt;
  &amp;lt;value&amp;gt;org.apache.hadoop.io.compress.SnappyCodec&amp;lt;/value&amp;gt; 
&amp;lt;/property&amp;gt; &lt;/PRE&gt;&lt;P&gt;You can of course set the first value to false in mapred-site.xml and override it by setting it for each job (e.g. as a parameter in the command line or set at the top of a pig script).&lt;/P&gt;&lt;P&gt;See this link for details: &lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.0/bk_hdfs_admin_tools/content/ch04.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.0/bk_hdfs_admin_tools/content/ch04.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Oct 2016 00:00:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Compression-along-with-mapreduce-codec-a-good-idea-Any/m-p/172182#M42053</guid>
      <dc:creator>gkeys</dc:creator>
      <dc:date>2016-10-01T00:00:21Z</dc:date>
    </item>
  </channel>
</rss>

