hadoop java.lang.IllegalArgumentException: Unknown codec: com.hadoop.compression.lzo.LzoCodec

if you just got:
2015-01-26 07:51:55,293 INFO org.apache.hadoop.mapred.TaskInProgress: Error from attempt_201501260748_0001_m_000001_3: java.lang.IllegalArgumentException: Unknown codec: com.hadoop.compression.lzo.LzoCodec
at org.apache.hadoop.io.SequenceFile$Reader.init(SequenceFile.java:1847)
at org.apache.hadoop.io.SequenceFile$Reader.initialize(SequenceFile.java:1765)
at org.apache.hadoop.io.SequenceFile$Reader.(SequenceFile.java:1714)
at org.apache.hadoop.io.SequenceFile$Reader.(SequenceFile.java:1728)
at org.apache.hadoop.mapred.SequenceFileRecordReader.(SequenceFileRecordReader.java:43)
at org.apache.hadoop.mapred.SequenceFileInputFormat.getRecordReader(SequenceFileInputFormat.java:59)

goto:  https://code.google.com/p/hadoop-gpl-packing/downloads/list

download the jar and the rpm install the rpm and then

sudo cp /opt/hadoopgpl/native/Linux-amd64-64/* /usr/lib/hadoop/lib/native/
sudo cp /opt/hadoopgpl/lib/* /usr/lib/hadoop/lib/

Comments