Return-Path: X-Original-To: apmail-hive-user-archive@www.apache.org Delivered-To: apmail-hive-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 9B388D9F6 for ; Mon, 16 Jul 2012 09:40:24 +0000 (UTC) Received: (qmail 69585 invoked by uid 500); 16 Jul 2012 09:40:23 -0000 Delivered-To: apmail-hive-user-archive@hive.apache.org Received: (qmail 69422 invoked by uid 500); 16 Jul 2012 09:40:23 -0000 Mailing-List: contact user-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hive.apache.org Delivered-To: mailing list user@hive.apache.org Received: (qmail 69390 invoked by uid 99); 16 Jul 2012 09:40:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jul 2012 09:40:21 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of codemonkee@163.com designates 220.181.13.49 as permitted sender) Received: from [220.181.13.49] (HELO m13-49.163.com) (220.181.13.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jul 2012 09:40:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Received:Date:From:To:Subject:Content-Type: MIME-Version:Message-ID; bh=ceO697ohI4PfCACWkrgWBstDc+Oe4bE5+PB1 h0q978I=; b=c1Rxe3qGs1KEzks2TtLlw3l0mPGGfL35LPfyYX3NzYYss4E2xher jsHq+tYaEmjEO4oVT7/jEzwoe/tNpw/cNu0AWUaU5sCbcXTZyNy6SPIC4x9sNpjX 3ZhPTsRY7xVoRQw5TcBWjS35G7Qxi/dLvHjvl/3e/AEltzT1/Gh3av0= Received: from codemonkee$163.com ( [121.0.29.113] ) by ajax-webmail-wmsvr49 (Coremail) ; Mon, 16 Jul 2012 17:39:50 +0800 (CST) X-Originating-IP: [121.0.29.113] Date: Mon, 16 Jul 2012 17:39:50 +0800 (CST) From: Richard To: user@hive.apache.org Subject: hive script: stop when error occurs X-Priority: 3 X-Mailer: Coremail Webmail Server Version SP_ntes V3.5 build 20120507(18390.4657.4663) Copyright (c) 2002-2012 www.mailtech.cn 163com X-CM-CTRLDATA: ubXjFWZvb3Rlcl9odG09NDk1Ojgx Content-Type: multipart/alternative; boundary="----=_Part_267237_983422067.1342431590201" MIME-Version: 1.0 Message-ID: <408ee3ae.17a7f.1388f287739.Coremail.codemonkee@163.com> X-CM-TRANSID: McGowGAp1EVn4QNQQVl0AA--.2904W X-CM-SenderInfo: 5frgvz5rqnvvi6rwjhhfrp/xtbBZgTt+0fowXzXGAACsr X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_267237_983422067.1342431590201 Content-Type: text/plain; charset=GBK Content-Transfer-Encoding: 7bit hi I am wondering if there is any configuration option that allows the hive script to stop when an error occurs. e.g., hive command 1; hive command 2; hive command 3; if error occurs when hive command 2 is excuted, I want it to stop at this line so that I can easily find that something is wrong. otherwise the error message is hard to be nocited. thanks. Richard ------=_Part_267237_983422067.1342431590201 Content-Type: text/html; charset=GBK Content-Transfer-Encoding: 7bit
 hi
I am wondering if there is any configuration option that allows the hive script to stop when an error occurs.
e.g.,

hive command 1;
hive command 2;
hive command 3;

if error occurs when hive command 2 is excuted, I want it to stop at this line so that I can easily find that something
is wrong. otherwise the error message is hard to be nocited.

thanks.
Richard


------=_Part_267237_983422067.1342431590201--