You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "holdenk (JIRA)" <ji...@apache.org> on 2016/10/08 02:56:20 UTC
[jira] [Closed] (SPARK-8760) allow moving and symlinking binaries
[ https://issues.apache.org/jira/browse/SPARK-8760?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
holdenk closed SPARK-8760.
--------------------------
Resolution: Fixed
This is a "partially fixed" but I think fixed is a close enough description. We don't use readlink but we do check for the current SPARK_HOME before running and if the user has a custom SPARK_HOME then can just point it there since we no longer overwrite it in `spark-submit`.
> 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
> Original Estimate: 5m
> Remaining Estimate: 5m
>
> 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org