Philipp Angerer created SPARK-8760:
--------------------------------------
Summary: allow moving and symlinking binaries
Key: SPARK-8760
URL: https://issues.apache.org/jira/browse/SPARK-8760
Project: Spark
Issue Type: Improvement
Components: PySpark, Spark Shell, Spark Submit, SparkR
Affects Versions: 1.4.0
Reporter: Philipp Angerer
Priority: Minor
you use the following line to determine {{$SPARK_HOME}} in all binaries
{code:none}
export SPARK_HOME="$(cd "`dirname "$0"`"/..; pwd)"
{code}
however users should be able to override this. also symlinks should be followed:
{code:none}
if [[ -z "$SPARK_HOME" ]]; then
export SPARK_HOME="$(dirname "$(readlink -f "$0")")"
fi
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]