Skip to content
Snippets Groups Projects
Commit c1c219e2 authored by Matei Zaharia's avatar Matei Zaharia
Browse files

Merge pull request #564 from maspotts/master

Allow latest scala in PATH, with SCALA_HOME as override (instead of vice-versa)
parents c35d530b 6f688608
No related branches found
No related tags found
No related merge requests found
...@@ -47,14 +47,15 @@ case "$1" in ...@@ -47,14 +47,15 @@ case "$1" in
esac esac
if [ "$SPARK_LAUNCH_WITH_SCALA" == "1" ]; then if [ "$SPARK_LAUNCH_WITH_SCALA" == "1" ]; then
if [ `command -v scala` ]; then if [ "$SCALA_HOME" ]; then
RUNNER="scala" RUNNER="${SCALA_HOME}/bin/scala"
else else
if [ -z "$SCALA_HOME" ]; then if [ `command -v scala` ]; then
echo "SCALA_HOME is not set" >&2 RUNNER="scala"
else
echo "SCALA_HOME is not set and scala is not in PATH" >&2
exit 1 exit 1
fi fi
RUNNER="${SCALA_HOME}/bin/scala"
fi fi
else else
if [ `command -v java` ]; then if [ `command -v java` ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment