Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
0.20.2, 0.23.9, 2.2.0
-
None
-
None
-
CDH3U2 Redhat linux 5.7
-
Reviewed
Description
Having defined a recorddelimiter of multiple bytes in a new InputFileFormat sometimes has the effect of skipping records from the input.
This happens when the input splits are split off just after a recordseparator. Starting point for the next split would be non zero and skipFirstLine would be true. A seek into the file is done to start - 1 and the text until the first recorddelimiter is ignored (due to the presumption that this record is already handled by the previous maptask). Since the re ord delimiter is multibyte the seek only got the last byte of the delimiter into scope and its not recognized as a full delimiter. So the text is skipped until the next delimiter (ignoring a full record!!)
Attachments
Attachments
Issue Links
- is related to
-
HADOOP-13192 org.apache.hadoop.util.LineReader cannot handle multibyte delimiters correctly
- Closed
-
MAPREDUCE-5656 bzip2 codec can drop records when reading data in splits
- Closed
-
MAPREDUCE-6481 LineRecordReader may give incomplete record and wrong position/key information for uncompressed input sometimes.
- Closed
- relates to
-
HADOOP-11445 Bzip2Codec: Data block is skipped when position of newly created stream is equal to start of split
- Closed