Differences between revisions 1 and 2
Revision 1 as of 2007-05-02 21:39:07
Size: 847
Editor: JackHebert
Revision 2 as of 2009-09-20 23:54:44
Size: 847
Editor: localhost
Comment: converted to 1.6 markup
No differences found!

Sequence File Format

A complex project using Hadoop often requires multiple map-reduces to happen in series. While the input data may be textual, it is extremely helpful to maintain intermediate data in the SequenceFile format.

SequenceFile's allow you to skip avoid parsing lines of input data into <key, value> pairs. Instead, the mapper will receive the exact <key, value> pairs that were emitted by the reducer who created the data.

This format is easily used by setting the output format of a job to be SequenceFileOutputFormat: JobConf.setOutputFormat(SequenceFileOutputFormat.class), and setting all successive jobs to use SequenceFileInputFormat: JobConf.setInputFormat(SequenceFileInputFormat.class).

While the files are not exactly human readable, their use greatly eases the implementation of map reduce sequences.

HadoopMapReduceSequenceFileFormat (last edited 2009-09-20 23:54:44 by localhost)