I've written a simple LzoWordCount the following to my Gateway/hadoop-env.sh:
HADOOP_CLASSPATH=/opt/cloudera/parcels/HADOOP_LZO/lib/hadoop/lib/hadoop-lzo-cdh4-0.4.15-gplextras.jar
JAVA_LIBRARY_PATH=/opt/cloudera/parcels/HADOOP_LZO-0.4.15-1.gplextras.p0.105/lib/hadoop/lib/native/
When I run the MR job, I get:
mapred.JobClient: Task Id : attempt_201307311800_0020_m_000002_2, Status : FAILED java.lang.RuntimeException: native-lzo library not available
Any ideas how to fix this issue? I did notice that 'hadoop classpath | grep native' returns nothing?
goto: https://code.google.com/p/hadoop-gpl-packing/downloads/list
download the jar and the rpm install the rpm (at the time:
hadoop-gpl-packaging-0.6.1-1.x86_64.rpm
) and thenbe weary with the above commands not to override files you don't want to. so first make a back of the target folder before you run this.