Thanks Doug.

I have written my RecordReader from scratch.  I used LineRecordReader as
a template.  In my response to Owen I showed that if I set isSplitable
to false I get splits that represent my entire input file but I am only
able to read up to the 67108800 byte (which I believe is a block).  

Is there any other information I can give?


-----Original Message-----
From: Doug Cutting [mailto:[EMAIL PROTECTED] On Behalf Of Doug Cutting
Sent: Tuesday, October 28, 2008 11:41
To: [email protected]
Subject: Re: Understanding file splits

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
> 
> 

Reply via email to