Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 57996 invoked from network); 13 Aug 2007 21:53:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Aug 2007 21:53:52 -0000 Received: (qmail 9506 invoked by uid 500); 13 Aug 2007 21:53:49 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 9482 invoked by uid 500); 13 Aug 2007 21:53:49 -0000 Mailing-List: contact hadoop-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hadoop-dev@lucene.apache.org Delivered-To: mailing list hadoop-dev@lucene.apache.org Received: (qmail 9473 invoked by uid 99); 13 Aug 2007 21:53:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Aug 2007 14:53:49 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Aug 2007 21:53:50 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 628EB7141E2 for ; Mon, 13 Aug 2007 14:53:30 -0700 (PDT) Message-ID: <1970062.1187042010391.JavaMail.jira@brutus> Date: Mon, 13 Aug 2007 14:53:30 -0700 (PDT) From: "Nigel Daley (JIRA)" To: hadoop-dev@lucene.apache.org Subject: [jira] Updated: (HADOOP-1663) streaming returning 0 when submitJob fails with Exception In-Reply-To: <30596771.1185608812843.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-1663?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nigel Daley updated HADOOP-1663: -------------------------------- Fix Version/s: (was: 0.15.0) 0.14.0 > streaming returning 0 when submitJob fails with Exception > --------------------------------------------------------- > > Key: HADOOP-1663 > URL: https://issues.apache.org/jira/browse/HADOOP-1663 > Project: Hadoop > Issue Type: Bug > Components: contrib/streaming > Affects Versions: 0.13.1 > Reporter: Koji Noguchi > Assignee: Koji Noguchi > Fix For: 0.14.0 > > Attachments: h-1663-streamexception-as-returncode.patch, h-1663-streamexception-mod.patch, h-1663-streamexception-simpletestcase.patch, h-1663-streamexception.patch > > > In streaming, if I pass an input filename that doesn't exist, > bash-3.00$ hadoop jar hadoop-streaming.jar -mapper "/bin/cat" -reducer "/bin/cat" -input "inputfoo" -output "output" > ... > 07/07/28 07:37:18 ERROR streaming.StreamJob: Error Launching job : Input path doesnt exist : /user/knoguchi/inputfoo > bash-3.00$ echo $? > *0* > ================= > Copy&Pasting Milind's comment. > its a hadoop streaming problem. See the code > below: > }catch( IOException ioe){ > LOG.error("Error Launching job : " + ioe.getMessage()); > } > finally { > if (error && (running_ != null)) { > LOG.info("killJob..."); > running_.killJob(); > } > jc_.close(); > Note that it catches exception, and does not rethrow it !!! > ================= -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.