hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joan <joan.monp...@gmail.com>
Subject Re: How to pass object between jobs
Date Wed, 26 Jan 2011 07:21:43 GMT
Hi harsh

I want to create many pairs <k,v> where v will be custom object so this will
happen when my reduce's finished, so the output from job1 will be file with
<k,v> = <Text,MyObject>

Then In second job I want to get MyObject from first job, ┬┐you know? So now,
I have:


<Input,Output> <MyObject, Text>

<Input,Output> <Text, MyObject>

Then I have to convert Text object, from first job, to MyObject in second
job and I wan't to do this, I want to can work with MyObject directly.



2011/1/25 Harsh J <qwertymaniac@gmail.com>

> Could you describe your need with an example?
> If you want the output of a Job (Job1), say being a single file with a
> single value in it, to be read and used as a scalar in the next Job
> (Job2), you can do it by reading and creating the object(s) manually
> from Job1's end, and then using it via a configuration property in
> Job2. This is straightforward.
> But what exact type of passing are you talking about? It would be much
> easier to answer that if we know.
> On Tue, Jan 25, 2011 at 8:00 PM, Joan <joan.monplet@gmail.com> wrote:
> > Hi,
> >
> > I would like pass one object from job1 to job2
> >
> > Someone can I help me, please?
> >
> > Thanks
> >
> > Joan
> >
> --
> Harsh J
> www.harshj.com

View raw message