You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by sh...@apache.org on 2019/03/15 10:04:01 UTC

[kylin] branch master updated: KYLIN-3571 give a message to user when spark not found

This is an automated email from the ASF dual-hosted git repository.

shaofengshi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kylin.git


The following commit(s) were added to refs/heads/master by this push:
     new 6b9a3d2  KYLIN-3571 give a message to user when spark not found
6b9a3d2 is described below

commit 6b9a3d27c3e29bd698a8a39d3dd945fbb61657da
Author: shaofengshi <sh...@apache.org>
AuthorDate: Fri Mar 15 18:03:42 2019 +0800

    KYLIN-3571 give a message to user when spark not found
---
 build/bin/find-spark-dependency.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/build/bin/find-spark-dependency.sh b/build/bin/find-spark-dependency.sh
index 7179944..e8a32a8 100755
--- a/build/bin/find-spark-dependency.sh
+++ b/build/bin/find-spark-dependency.sh
@@ -35,6 +35,11 @@ then
     spark_home=$KYLIN_HOME/spark
 fi
 
+if [ ! -d "$spark_home/jars" ]
+  then
+    quit "spark not found, set SPARK_HOME, or run bin/download-spark.sh"
+fi
+
 spark_dependency=`find -L $spark_home/jars -name '*.jar' ! -name '*slf4j*' ! -name '*calcite*' ! -name '*doc*' ! -name '*test*' ! -name '*sources*' ''-printf '%p:' | sed 's/:$//'`
 if [ -z "$spark_dependency" ]
 then