Hi,
I want to use an lzo file as input for a mapper. The record reader
determines the codec using a CompressionCodecFactory, like this:
(Hadoop version 0.19.0)
compressionCodecs = new CompressionCodecFactory(job);
System.out.println("Using codecFactory: "+compressionCodecs.toString());
final CompressionCodec codec = compressionCodecs.getCodec(file);
System.out.println("Using codec: "+codec+" for file "+file.getName());
The output that I get is:
Using codecFactory: { etalfed_ozl.: org.apache.hadoop.io.compress.LzoCodec }
Using codec: null for file test.lzo
Of course, the mapper does not work without codec. What could be the
problem?
Thanks,
Gert