diff --git bin/hive bin/hive index aa92ae6..7d60fd9 100755 --- bin/hive +++ bin/hive @@ -108,8 +108,13 @@ elif [ "${HIVE_AUX_JARS_PATH}" != "" ]; then HIVE_AUX_JARS_PATH=`echo $HIVE_AUX_JARS_PATH | sed 's/;/,/g'` fi AUX_CLASSPATH=${HIVE_AUX_JARS_PATH} - AUX_PARAM=file://${HIVE_AUX_JARS_PATH} - AUX_PARAM=`echo $AUX_PARAM | sed 's/,/,file:\/\//g'` + # AUX_PARAM needs to be a comma separated list of "file" scheme paths + # Replace colons and semicolons with commas; eliminate repeats + AUX_PARAM=`echo $AUX_CLASSPATH | awk '{gsub(/[:;,]+/, ",");print}'` + # Strip leading/trailing commas + AUX_PARAM=`echo $AUX_PARAM | awk '{gsub(/^,|,$/, "");print}'` + # Replace commas with file:// + AUX_PARAM=file://`echo $AUX_PARAM | awk '{gsub(/,/, ",file://");print}'` fi # adding jars from auxlib directory