A simple example of Hadoop application code which follows that pattern
(iterate until condition). In the "jyte" section:

   http://code.google.com/p/ceteri-mapred/

Loop and condition test are in the same code which calls ToolRunner
and JobClient.

Best,
Paco


On Tue, Jul 29, 2008 at 10:03 AM, Christian Ulrik Søttrup
<[EMAIL PROTECTED]> wrote:
> Hi Shirley,
>
> I am basically doing as Qin suggested.
> I am running a job iteratively until some condition is met.
> My main looks something like:(in pseudo code)
>
> main:
> while (!converged):
>  make new jobconf
>  setup jobconf
>  run jobconf
>  check reporter for statistics
>  decide if converged
>
> I use a custom reporter to check on the fitness of the solution in the
> reduce phase.
>
> If you need more(real java) code drop me a line.
>
> Cheers,
> Christian

Reply via email to