Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
0.22.0, 0.23.0, 1.0.0, 2.0.0-alpha
-
None
Description
NLineInputFormat creates FileSplits that are then used by LineRecordReader to generate Text values. To deal with an idiosyncrasy of LineRecordReader, the begin and length fields of the FileSplit are constructed differently for the first FileSplit vs. the rest.
After looping through all lines of a file, the final FileSplit is created, but the creation does not respect the difference of how the first vs. the rest of the FileSplits are created.
This results in the first line of the final InputSplit being skipped. I've created a patch to NLineInputFormat, and this fixes the problem.