hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xuefu Zhang (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-6328) Hive script should not overwrite AUX_CLASSPATH with HIVE_AUX_JARS_PATH if the latter is set
Date Wed, 29 Jan 2014 03:36:11 GMT

     [ https://issues.apache.org/jira/browse/HIVE-6328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Xuefu Zhang updated HIVE-6328:
------------------------------

    Status: Patch Available  (was: Open)

> 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.12.0, 0.10.0, 0.9.0, 0.8.0
>            Reporter: Xuefu Zhang
>            Assignee: Xuefu Zhang
>         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)

Mime
View raw message