hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sze...@apache.org
Subject [15/44] hive git commit: HIVE-9861 - Add spark-assembly on Hive's classpath [Spark Branch] (Jimmy via Chao)
Date Thu, 23 Apr 2015 02:34:24 GMT
HIVE-9861 - Add spark-assembly on Hive's classpath [Spark Branch] (Jimmy via Chao)

git-svn-id: https://svn.apache.org/repos/asf/hive/branches/spark@1664419 13f79535-47bb-0310-9956-ffa450edef68


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/fc3b6ee9
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/fc3b6ee9
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/fc3b6ee9

Branch: refs/heads/master
Commit: fc3b6ee9281fbaeb5dd407207500d1d4f956058c
Parents: e6aad18
Author: Sun Chao <sunchao@apache.org>
Authored: Thu Mar 5 17:08:05 2015 +0000
Committer: Szehon Ho <szehon@cloudera.com>
Committed: Wed Apr 22 19:33:50 2015 -0700

----------------------------------------------------------------------
 bin/hive | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/fc3b6ee9/bin/hive
----------------------------------------------------------------------
diff --git a/bin/hive b/bin/hive
index 8a95e30..50bd726 100755
--- a/bin/hive
+++ b/bin/hive
@@ -110,6 +110,13 @@ for f in ${HIVE_LIB}/*.jar; do
   CLASSPATH=${CLASSPATH}:$f;
 done
 
+# add Spark assembly jar to the classpath
+if [[ -n "$SPARK_HOME" ]]
+then
+  sparkAssemblyPath=`ls ${SPARK_HOME}/lib/spark-assembly-*.jar`
+  CLASSPATH="${CLASSPATH}:${sparkAssemblyPath}"
+fi
+
 # add the auxillary jars such as serdes
 if [ -d "${HIVE_AUX_JARS_PATH}" ]; then
   hive_aux_jars_abspath=`cd ${HIVE_AUX_JARS_PATH} && pwd`


Mime
View raw message