diff options
author | Mike <maspotts@yahoo.com> | 2013-04-11 20:52:06 -0700 |
---|---|---|
committer | Mike <maspotts@yahoo.com> | 2013-04-11 20:52:06 -0700 |
commit | 6f688608915a82e6dcf4a27dc92e4b25a3570fa4 (patch) | |
tree | f99b87db689bf8ac90063764d62ead8ec01d22e8 /run.cmd | |
parent | c91ff8d493c6cfcfcd2fc7702e60fecb73fbbf89 (diff) | |
download | spark-6f688608915a82e6dcf4a27dc92e4b25a3570fa4.tar.gz spark-6f688608915a82e6dcf4a27dc92e4b25a3570fa4.tar.bz2 spark-6f688608915a82e6dcf4a27dc92e4b25a3570fa4.zip |
Reversed the order of tests to find a scala executable (in the case when SPARK_LAUNCH_WITH_SCALA is defined): instead of checking in the PATH first, and only then (if not found) for SCALA_HOME, now we check for SCALA_HOME first, and only then (if not defined) do we look in the PATH. The advantage is that now if the user has a more recent (non-compatible) version of scala in her PATH, she can use SCALA_HOME to point to the older (compatible) version for use with spark.
Suggested by Josh Rosen in this thread:
https://groups.google.com/forum/?fromgroups=#!topic/spark-users/NC9JKvP8808
Diffstat (limited to 'run.cmd')
0 files changed, 0 insertions, 0 deletions