This is hard to diagnose without knowing your InputFormat. Each split
returned by your #getSplits() implementation is passed to your
#getRecordReader() implementation. If your RecordReader is not stopping
when you expect it to, then that's a problem in your RecordReader, no?
Have you written a RecordReader from scratch? If not, which have you
modified? And how have you modified it?
Doug
Malcolm Matalka wrote:
I am trying to write an InputFormat and I am having some trouble
understanding how my data is being broken up. My input is a previous
hadoop job and I have added code to my record reader to print out the
FileSplit's start and end position, as well as where the last record I
read was located. My record are all about 100 bytes so fairly small.
For one file I am seeing the following output:
start: 0 end: 45101881 pos: 67108800
start: 45101880 end: 90203762 pos: 67108810
start: 90203761 end: 135305643 pos: 134217621
start: 135305642 end: 180170980 pos: 180170902
Note, I have also specified in my InputFormat that isSplittable return
false.
I do not understand why there is overlap. Note that on the second one,
I never appear to reach the end position.
Any suggestions?
Thanks