From 709d71945a75a11fea6d91fd97ded30bd98b2950 Mon Sep 17 00:00:00 2001 From: witgo Date: Tue, 15 Apr 2014 15:26:30 +0800 Subject: [PATCH 1/3] add with-hive argument to make-distribution.sh --- make-distribution.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/make-distribution.sh b/make-distribution.sh index 5c780fcbda863..563f496bdfaa3 100755 --- a/make-distribution.sh +++ b/make-distribution.sh @@ -74,6 +74,9 @@ while (( "$#" )); do --with-tachyon) SPARK_TACHYON=true ;; + --with-hive) + SPARK_HIVE=true + ;; --tgz) MAKE_TGZ=true ;; @@ -100,9 +103,17 @@ else echo "Tachyon Disabled" fi +if [ "$SPARK_HIVE" == "true" ]; then + echo "Hive Enabled" +else + echo "Hive Disabled" +fi + # Build fat JAR export SPARK_HADOOP_VERSION export SPARK_YARN +export SPARK_HIVE +export SPARK_TACHYON cd $FWDIR "sbt/sbt" "assembly/assembly" From 6d344c8e35f28a2bb1063bbd24057e256d3fa2f2 Mon Sep 17 00:00:00 2001 From: witgo Date: Tue, 15 Apr 2014 15:29:29 +0800 Subject: [PATCH 2/3] add with-hive argument to make-distribution.sh --- make-distribution.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make-distribution.sh b/make-distribution.sh index 563f496bdfaa3..21d6b64cc20f5 100755 --- a/make-distribution.sh +++ b/make-distribution.sh @@ -59,6 +59,7 @@ echo "Version is ${VERSION}" SPARK_HADOOP_VERSION=1.0.4 SPARK_YARN=false SPARK_TACHYON=false +SPARK_HIVE=false MAKE_TGZ=false # Parse arguments @@ -113,7 +114,6 @@ fi export SPARK_HADOOP_VERSION export SPARK_YARN export SPARK_HIVE -export SPARK_TACHYON cd $FWDIR "sbt/sbt" "assembly/assembly" From d5fc55e7b1b607f955f996fd4f514dfe29697923 Mon Sep 17 00:00:00 2001 From: witgo Date: Sat, 19 Apr 2014 01:19:48 +0800 Subject: [PATCH 3/3] --with-hive Optional Arguments --- make-distribution.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/make-distribution.sh b/make-distribution.sh index 21d6b64cc20f5..1011c0fe2eca4 100755 --- a/make-distribution.sh +++ b/make-distribution.sh @@ -28,6 +28,7 @@ # --tgz: Additionally creates spark-$VERSION-bin.tar.gz # --hadoop VERSION: Builds against specified version of Hadoop. # --with-yarn: Enables support for Hadoop YARN. +# --with-hive: Enables support for Hive. # # Recommended deploy/testing procedure (standalone mode): # 1) Rsync / deploy the dist/ dir to one host