diff --git a/bin/hive b/bin/hive index 9dc18a2..bb10739 100755 --- a/bin/hive +++ b/bin/hive @@ -111,7 +111,7 @@ for f in ${HIVE_LIB}/*.jar; do done # add Spark assembly jar to the classpath -if [[ -n "$SPARK_HOME" ]] +if [[ -n "$SPARK_HOME" && "$HIVE_ADD_SPARK_ASSEMBLY" = "true" ]] then sparkAssemblyPath=`ls ${SPARK_HOME}/lib/spark-assembly-*.jar` CLASSPATH="${CLASSPATH}:${sparkAssemblyPath}"