Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
MapReduce, mail # user - job taking input file, which "is being" written by its preceding job's map phase


+
Vamshi Krishna 2012-02-08, 06:58
Copy link to this message
-
Re: job taking input file, which "is being" written by its preceding job's map phase
Harsh J 2012-02-08, 07:17
Vamsi,

Is it not possible to express your M-M-R phase chain as a simple, single M-R?

Perhaps look at the ChainMapper class @
http://hadoop.apache.org/common/docs/current/api/org/apache/hadoop/mapred/lib/ChainMapper.html

On Wed, Feb 8, 2012 at 12:28 PM, Vamshi Krishna <[EMAIL PROTECTED]> wrote:
> Hi all
> i have an important question about mapreduce.
>  i have 2 hadoop mapreduce jobs. job1 has only mapper but no reducer. Job1
> started and in its map() it is writing to a "file1" using
> context(Arg1,Arg2). If i wanted to start job2 (immidietly after job1) ,
> which should take the "file1" (output still being written by above job's map
> phase) as input and do processing in its own map/reduce phases, and job2
> should keep on taking the newly written data to "file1" , untill job1
> finishes, what i should do?
>
> how can i do that, Please can anybody help?
>
> --
> Regards
>
> Vamshi Krishna
>

--
Harsh J
Customer Ops. Engineer
Cloudera | http://tiny.cloudera.com/about
+
Vamshi Krishna 2012-02-09, 06:45
+
Harsh J 2012-02-09, 07:15
+
Wellington Chevreuil 2012-02-09, 14:19
+
Harsh J 2012-02-09, 15:26
+
Vamshi Krishna 2012-02-11, 06:51
+
Harsh J 2012-02-11, 13:54