Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B399210E46 for ; Mon, 28 Oct 2013 09:39:43 +0000 (UTC) Received: (qmail 38546 invoked by uid 500); 28 Oct 2013 09:39:41 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 38351 invoked by uid 500); 28 Oct 2013 09:39:34 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 37852 invoked by uid 500); 28 Oct 2013 09:39:32 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 37819 invoked by uid 99); 28 Oct 2013 09:39:31 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Oct 2013 09:39:31 +0000 Date: Mon, 28 Oct 2013 09:39:31 +0000 (UTC) From: "chaozhang (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HIVE-5669) The '-i' argument in the Hive Shell doesn't work properly MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 chaozhang created HIVE-5669: ------------------------------- Summary: The '-i' argument in the Hive Shell doesn't work prop= erly Key: HIVE-5669 URL: https://issues.apache.org/jira/browse/HIVE-5669 Project: Hive Issue Type: Bug Reporter: chaozhang Priority: Minor I=E2=80=98m starting to read the source code about the hive-0.90. I found t= hat the =E2=80=99-i=E2=80=98 arg in the hive shell can process more than on= e files. But when i tried 'hive -i ***.sql ***.sql' in the command line, it= just processed the first file. Then I looked into the source code carefully, finding that the use of apach= e common-cli may be not right.=20 The 'options.addOption' code about '-i' in the OptionsProcessor.java file, = may have some problem.The action hasArg() is the wrong thing. In the '-i' a= rg, it should be changed to hasOptionalArgs() according to the related proc= essing code. -- This message was sent by Atlassian JIRA (v6.1#6144)