Details
Description
Hadoop recognizes gzip compressed input and automatically decompresses the data before providing it to the mapper. But Hadoop can not split a gzip stream due to the very nature of the gzip compression. Consequently one gzip stream (e.g a whole file) can go to only one mapper. On the contrary Bzip2 compressed stream can be split across its block delimiters.
We are interested in extending Hadoop to support splittable bzip2 with a codec. (https://issues.apache.org/jira/browse/HADOOP-1823 uses input reader to split the bzip2 files, which must be provided by the user and can handle FileInputFormat. If a user wants to use some other input format or wants to do custom record handling, he must write a new input reader!)
We have a patch now that provides a basic bzip2 codec equivalent to the current gzip codec. We are in the process of extending that to support splitting.
Attachments
Attachments
Issue Links
- is blocked by
-
HADOOP-5326 bzip2 codec (CBZip2OutputStream) creates corrupted output file for some inputs
- Closed
- is related to
-
HADOOP-4918 Fix bzip2 work with SequenceFile
- Closed
-
HADOOP-1823 want InputFormat for bzip2 files
- Resolved
-
HADOOP-4012 Providing splitting support for bzip2 compressed files
- Closed
-
MAPREDUCE-772 Chaging LineRecordReader algo so that it does not need to skip backwards in the stream
- Closed
-
HADOOP-5379 Throw exception instead of writing to System.err when there is a CRC error on CBZip2InputStream
- Closed