Return-Path: Delivered-To: apmail-hadoop-core-user-archive@www.apache.org Received: (qmail 13727 invoked from network); 29 Jul 2008 15:05:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Jul 2008 15:05:10 -0000 Received: (qmail 40018 invoked by uid 500); 29 Jul 2008 15:05:03 -0000 Delivered-To: apmail-hadoop-core-user-archive@hadoop.apache.org Received: (qmail 39991 invoked by uid 500); 29 Jul 2008 15:05:03 -0000 Mailing-List: contact core-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-user@hadoop.apache.org Delivered-To: mailing list core-user@hadoop.apache.org Received: (qmail 39973 invoked by uid 99); 29 Jul 2008 15:05:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Jul 2008 08:05:03 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [130.225.212.6] (HELO mail2.nbi.dk) (130.225.212.6) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Jul 2008 15:04:08 +0000 Received: from [10.0.0.57] (unknown [93.162.127.210]) by mail2.nbi.dk (Postfix) with ESMTP id DFD053C015 for ; Tue, 29 Jul 2008 17:04:02 +0200 (CEST) Message-ID: <488F315C.4010105@nbi.dk> Date: Tue, 29 Jul 2008 17:03:56 +0200 From: =?UTF-8?B?Q2hyaXN0aWFuIFVscmlrIFPDuHR0cnVw?= User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: core-user@hadoop.apache.org Subject: Re: iterative map-reduce References: <643aa4870806260443i17bf8a7bp6451b849b95ba1e@mail.gmail.com> <6FC55D62-A507-4D55-B953-AA371FB06954@cs.utexas.edu> <826304a60807290710j628237c0oaf3c009f252731a3@mail.gmail.com> <826304a60807290738y54be709bjbd4581560f3d1b81@mail.gmail.com> In-Reply-To: <826304a60807290738y54be709bjbd4581560f3d1b81@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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 Qin Gao wrote: > I think it is nothing to do with the framework, just treat the mapredcue as > a batch process or a subroutine, and you may iteratively call them. If there > are such interface, I am also interested to know. > > > > On Tue, Jul 29, 2008 at 10:31 AM, Shirley Cohen wrote: > > >> Thanks... would the iterative script be run outside of Hadoop? I was >> actually trying to figure out if the framework could handle iterations. >> >> Shirley >> >> >> On Jul 29, 2008, at 9:10 AM, Qin Gao wrote: >> >> if you are using java, just create job configure again and run it, >> >>> otherwise >>> you just need to write a iterative script. >>> >>> On Tue, Jul 29, 2008 at 9:57 AM, Shirley Cohen >>> wrote: >>> >>> Hi, >>> >>>> I want to call a map-reduce program recursively until some condition is >>>> met. How do I do that? >>>> >>>> Thanks, >>>> >>>> Shirley >>>> >>>> >>>> >>>> > >