Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hadoop >> mail # user >> LZO with sequenceFile


Copy link to this message
-
Re: LZO with sequenceFile
Thanks. Does it mean LZO is not installed by default? How can I install LZO?

On Sat, Feb 25, 2012 at 6:27 PM, Shi Yu <[EMAIL PROTECTED]> wrote:

> Yes, it is supported by Hadoop sequence file. It is splittable
> by default. If you have installed and specified LZO correctly,
> use these:
>
>
> org.apache.hadoop.mapreduce.lib.output.SequenceFileOutputForma
> t.setCompressOutput(job,true);
>
> org.apache.hadoop.mapreduce.lib.output.SequenceFileOutputForma
> t.setOutputCompressorClass(job,com.hadoop.compression.lzo.LzoC
> odec.class);
>
> org.apache.hadoop.mapreduce.lib.output.SequenceFileOutputForma
> t.setOutputCompressionType(job,
> SequenceFile.CompressionType.BLOCK);
>
> job.setOutputFormatClass(org.apache.hadoop.mapreduce.lib.outpu
> t.SequenceFileOutputFormat.class);
>
>
> Shi
>