For MapReduce, you need to add entries to the MapReduce Client Environment Safety valve. You can find MapReduce Client Safety by going to the View and Edit tab in the Configuration section. Then add the following lines:
- HADOOP_CLASSPATH = $ HADOOP_CLASSPATH: / opt / Cloudera / parcels / HADOOP_LZO / Library / Hadoop / Library / *
- JAVA_LIBRARY_PATH = $ JAVA_LIBRARY_PATH: / opt / Cloudera / packages / HADOOP_LZO / Library / Hadoop / Library / native
Also add LZO codecs to the io.compression.codecs property in the MapReduce service. To do this, go to io.compression in the View and edit section in the Configuration section, and these lines:
- com.hadoop.compression.lzo.LzoCodec
- com.hadoop.compression.lzo.LzopCodec
Remember to restart your MR daemons after making the changes. After restarting, reconfigure the MP client.
Detailed help on using LZO can be found at this link: http://www.cloudera.com/content/cloudera-content/cloudera-docs/CM4Ent/latest/Cloudera-Manager-Installation-Guide/cmig_install_LZO_Compression.html
NTN
Tariq source share