On Feb 20, 2008, at 10:21 PM, ma qiang wrote:
Hi all:
Here I have two mapreduce program.I need to use the result of the
first mapreduce program to computer another values which generate in
the second mapreduce program and this intermediate result is not need
to save, so I want to run the second mapreduce program automatic using
output of the first mapreduce program as the input of the second
mapreduce program. Who can tell me how?
Thanks!
Best Wishes!
The output of the first job goes to HDFS (the output dir you
specified for your job), use that same directory as the input-dir for
your next job.
There is a 'jobcontrol' api which you can use to chain jobs:
http://hadoop.apache.org/core/docs/r0.16.0/api/org/apache/hadoop/
mapred/jobcontrol/package-summary.html
Arun
Qiang