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 E981110243 for ; Sat, 1 Feb 2014 03:20:15 +0000 (UTC) Received: (qmail 65733 invoked by uid 500); 1 Feb 2014 03:20:11 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 65559 invoked by uid 500); 1 Feb 2014 03:20:10 -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 65540 invoked by uid 500); 1 Feb 2014 03:20:09 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 65524 invoked by uid 99); 1 Feb 2014 03:20:09 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Feb 2014 03:20:09 +0000 Date: Sat, 1 Feb 2014 03:20:09 +0000 (UTC) From: "Xuefu Zhang (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-6328) Hive script should not overwrite AUX_CLASSPATH with HIVE_AUX_JARS_PATH if the latter is set 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/HIVE-6328?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13888431#comment-13888431 ] Xuefu Zhang commented on HIVE-6328: ----------------------------------- Patch committed to trunk. Thanks to Prasad for the review. > Hive script should not overwrite AUX_CLASSPATH with HIVE_AUX_JARS_PATH if the latter is set > ------------------------------------------------------------------------------------------- > > Key: HIVE-6328 > URL: https://issues.apache.org/jira/browse/HIVE-6328 > Project: Hive > Issue Type: Bug > Affects Versions: 0.8.0, 0.9.0, 0.10.0, 0.12.0 > Reporter: Xuefu Zhang > Assignee: Xuefu Zhang > Fix For: 0.13.0 > > Attachments: HIVE-6328.patch > > > Hive script (bin/hive) replaces the value of AUX_CLASSPATH with the value of HIVE_AUX_JARS_PATH if HIVE_AUX_JARS_PATH is defined. This is not desirable because user uses the former to include additional classes when starting hive, while using the latter to specify additional jars that are needed to run MR jobs. The problem can be demonstrated with the script snippet: > {code} > elif [ "${HIVE_AUX_JARS_PATH}" != "" ]; then > HIVE_AUX_JARS_PATH=`echo $HIVE_AUX_JARS_PATH | sed 's/,/:/g'` > if $cygwin; then > HIVE_AUX_JARS_PATH=`cygpath -p -w "$HIVE_AUX_JARS_PATH"` > HIVE_AUX_JARS_PATH=`echo $HIVE_AUX_JARS_PATH | sed 's/;/,/g'` > fi > AUX_CLASSPATH=${HIVE_AUX_JARS_PATH} > AUX_PARAM="file://$(echo ${HIVE_AUX_JARS_PATH} | sed 's/:/,file:\/\//g')" > fi > {code} > AUX_CLASSPATH should be respected regardless whether HIVE_AUX_JARS_PATH is defined. -- This message was sent by Atlassian JIRA (v6.1.5#6160)