ChaoChun Liang wrote:

Enis Soztutar wrote:
for(int i=0;i<something;i++) {
  if(isDone())
    break;

  JobConf job = new JobConf(conf);
  job.addInputPath("foo");
  job.setOutputPath("bar");
  //set job parameters accordingly
  JobClient.runJob(job);
}


Can I get the result directly from the reduce and decide whether the next
loop run or not? For example, I would like to get the residual value directly from the reduce
and to run the next loop if this value satisfied some criteria?

You can aggregate some (limited number) values using the Counters functionality, and retrieve them from the JobTracker when a job completes.


--
Best regards,
Andrzej Bialecki     <><
 ___. ___ ___ ___ _ _   __________________________________
[__ || __|__/|__||\/|  Information Retrieval, Semantic Web
___|||__||  \|  ||  |  Embedded Unix, System Integration
http://www.sigram.com  Contact: info at sigram dot com

Reply via email to