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

Reply via email to