Skip to content

Commit

Permalink
KYLIN-3571 give a message to user when spark not found
Browse files Browse the repository at this point in the history
  • Loading branch information
shaofengshi committed Mar 15, 2019
1 parent d23d2bd commit 6b9a3d2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build/bin/find-spark-dependency.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6b9a3d2

Please sign in to comment.