Return-Path: X-Original-To: apmail-hadoop-common-user-archive@www.apache.org Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 072C2E8E7 for ; Sat, 5 Jan 2013 16:49:29 +0000 (UTC) Received: (qmail 12192 invoked by uid 500); 5 Jan 2013 16:49:24 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 12088 invoked by uid 500); 5 Jan 2013 16:49:24 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 12081 invoked by uid 99); 5 Jan 2013 16:49:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Jan 2013 16:49:24 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of haavard.kongsgaard@gmail.com designates 209.85.216.182 as permitted sender) Received: from [209.85.216.182] (HELO mail-qc0-f182.google.com) (209.85.216.182) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Jan 2013 16:49:19 +0000 Received: by mail-qc0-f182.google.com with SMTP id k19so9812346qcs.41 for ; Sat, 05 Jan 2013 08:48:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=4pM7B3zKp7QkYuGktjLclY6KIwDCQUm/8U6z0lpAjnE=; b=YPdKxaGw4OyPPIMilbI12AelSfaofjzeU3S34wMf9aWJJBXqZvC9T1A6+q9pExpZwy JuTXF3HKin1uhwlnaW+RdzMGYyrp2rTTB6kMVS7L2M0pq58j1AolC4kkE8hf1K6Qu2U+ dKQ1koPH20wjLv6r9pIUQhxBqogKvmEmnM8Pju5lKH9RTTF+sYAj+KJ+4A8p3HElBmLV g5XeYNBapi59J2jOktpC69lJstc1cQPhKM1XgRQClvXT06hdfZhIxNKi7Z0bHoLR/Asa hPITN59QchgNCRXivG/5v2REJ1ZdJotYC56dqhoNqm3XBVTfxcfsEgCU5A8w1tyrZTt3 byzg== MIME-Version: 1.0 Received: by 10.224.70.205 with SMTP id e13mr36512623qaj.77.1357404538302; Sat, 05 Jan 2013 08:48:58 -0800 (PST) Received: by 10.49.12.227 with HTTP; Sat, 5 Jan 2013 08:48:58 -0800 (PST) In-Reply-To: <022f01cdeb4e$ea7fc170$bf7f4450$@yahoo.com> References: <022f01cdeb4e$ea7fc170$bf7f4450$@yahoo.com> Date: Sat, 5 Jan 2013 17:48:58 +0100 Message-ID: Subject: Re: Skipping entire task From: =?ISO-8859-1?Q?H=E5vard_Wahl_Kongsg=E5rd?= To: user@hadoop.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org yes, but I use pydoop not the native java library. The problem is that the same task times, so a solution is not that straightforward. And Pydoop does not seem to have any methods to inform the task how many times it has failed. So if there is no native method in hadoop, I could use a database or something for that purpose. Any other ideas? -H=E5vard On Sat, Jan 5, 2013 at 3:14 PM, David Parks wrote: > Thinking here... if you submitted the task programmatically you should be > able to capture the failure of the task and gracefully move past it to yo= ur > next tasks. > > To say it in a long-winded way: Let's say you submit a job to Hadoop, a > java jar, and your main class implements Tool. That code has the > responsibility to submit a series of jobs to hadoop, something like this: > > try{ > Job myJob =3D new MyJob(getConf()); > myJob.submitAndWait(); > }catch(Exception uhhohh){ > //Deal with the issue and move on > } > Job myNextJob =3D new MyNextJob(getConf()); > myNextJob.submit(); > > Just pseudo code there to demonstrate my thought. > > David > > > > -----Original Message----- > From: H=E5vard Wahl Kongsg=E5rd [mailto:haavard.kongsgaard@gmail.com] > Sent: Saturday, January 05, 2013 4:54 PM > To: user > Subject: Skipping entire task > > Hi, hadoop can skip bad records > http://devblog.factual.com/practical-hadoop-streaming-dealing-with-brittl= e-c > ode. > But it is also possible to skip entire tasks? > > -H=E5vard > > -- > H=E5vard Wahl Kongsg=E5rd > Faculty of Medicine & > Department of Mathematical Sciences > NTNU > > http://havard.security-review.net/ > --=20 H=E5vard Wahl Kongsg=E5rd Faculty of Medicine & Department of Mathematical Sciences NTNU http://havard.security-review.net/