Thanks Stack
will try that tomorrow.

Regards,
Raakhi

On Wed, Apr 22, 2009 at 10:33 PM, stack <[email protected]> wrote:

> On Wed, Apr 22, 2009 at 9:53 AM, Rakhi Khatwani <[email protected]
> >wrote:
>
> > Hi Stack,
> >              In the traditional scenario, an InputSplit is given to the
> map
> > and the map iterates through each of them sequentially right.
> > is there any way in which i can have 5 (for example) records in each map
> > iteration??
>
>
>
> If you can't change your database schema so rows have all you need per map,
> or if the Scanner.next(int count) won't work for you -- i.e. get 'count'
> items on each next invocation (perhaps this will work, I don't know, just
> saw it in Interface), then you might want to play w/
> org.apache.hadoop.mapred.MapRunner.  Its the thing that invokes maps.  You
> can subclass it and grab a bunch of rows and feed them all in a lump to an
> amended map.
>
>  St.Ack
>

Reply via email to