You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Zhaowei Shen (JIRA)" <ji...@apache.org> on 2015/09/09 05:07:45 UTC
[jira] [Commented] (SPARK-8760) allow moving and symlinking
binaries
[ https://issues.apache.org/jira/browse/SPARK-8760?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14736059#comment-14736059 ]
Zhaowei Shen commented on SPARK-8760:
-------------------------------------
In many production environment, user would link the spark scripts to /usr/bin.
Since all spark scripts cannot handle the symbol link, Spark home is always incorrect.
And user cannot overwrite the spark home.
> 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