Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7154A107D6 for ; Wed, 15 Jan 2014 00:03:24 +0000 (UTC) Received: (qmail 81414 invoked by uid 500); 15 Jan 2014 00:03:22 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 81302 invoked by uid 500); 15 Jan 2014 00:03:21 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 81190 invoked by uid 99); 15 Jan 2014 00:03:19 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jan 2014 00:03:19 +0000 Date: Wed, 15 Jan 2014 00:03:19 +0000 (UTC) From: "Suresh Srinivas (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-10234) "hadoop.cmd jar" does not propagate exit code. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-10234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13871405#comment-13871405 ] Suresh Srinivas commented on HADOOP-10234: ------------------------------------------ +1 for the patch. > "hadoop.cmd jar" does not propagate exit code. > ---------------------------------------------- > > Key: HADOOP-10234 > URL: https://issues.apache.org/jira/browse/HADOOP-10234 > Project: Hadoop Common > Issue Type: Bug > Components: scripts > Affects Versions: 2.2.0 > Reporter: Chris Nauroth > Assignee: Chris Nauroth > Fix For: 2.3.0 > > Attachments: HADOOP-10234.1.patch > > > Running "hadoop.cmd jar" does not always propagate the exit code to the caller. In interactive use, it works fine. However, in some usages (notably Hive), it gets called through {{Shell#getRunScriptCommand}}, which needs to do an intermediate "cmd /c" to execute the script. In that case, the last exit code is getting dropped, so Hive can't detect job failures. -- This message was sent by Atlassian JIRA (v6.1.5#6160)