Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

I am trying to set the snappy compression for the MR2 jobs.

I am trying to set the snappy compression for the MR2 jobs.

New Contributor

The documentation says to edit the mapred-site.xml file. I am using parcels and CDH5. I dont want to directly edit the mapred-site.xml file, I need to do that through the console, but it is very confusing trying to figure out where to exactly add the following settings in the GUI.

<property>
  <name>mapreduce.map.output.compress</name>  
  <value>true</value>
</property>
<property>
  <name>mapred.map.output.compress.codec</name>  
  <value>org.apache.hadoop.io.compress.SnappyCodec</value>
</property>
1 REPLY 1

Re: I am trying to set the snappy compression for the MR2 jobs.

Expert Contributor
You likely need to use the configuration safety valve for mapred-site.xml
in your YARN service.
You can read more about safety valves at
http://www.cloudera.com/content/cloudera-content/cloudera-docs/CM4Ent/4.8.1/Cloudera-Manager-Managin...

The article is for CM4 but CM5 would be very similar.