-
Notifications
You must be signed in to change notification settings - Fork 28.9k
Use user defined $SPARK_HOME in spark-submit if possible #1969
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Can one of the admins verify this patch? |
|
I once submitted a similar patch, but the latest solution (merged?) is that we will not send local SPARK_HOME to the remote end entirely..... @andrewor14? |
|
There was a bunch of prior discussion about this in an old pull request for SPARK-1110 (I'd link to it, but it's from the now-deleted I think we decided that it didn't make sense for workers to inherit @iven Was this pull request motivated by an issue that you saw when deploying Spark? Which version were you using, and on what platform? |
|
This is an updated JIRA for the same issue SPARK-2290. We established that, for standalone mode, we don't need to ship the driver's spark home to the executors, which may not use the same spark home. Instead, we should just use the @iven There are many other places where we export We need to do the same for all of these places in order for your intended behavior to take effect. In the longer run, however, we should just clean up our usages of |
|
In PySpark, it looks like we only use |
|
@JoshRosen I'm using Spark 1.0.2 with Mesos. If I don't specify SPARK_HOME in the driver, Mesos executors will LOST with error: Where I think this is caused by |
|
@andrewor14 OK. I've update the patch when we confirm this PR is necessary. |
|
@iven I'm a little confused here. Are you referring to some use case like this:
Is it? |
|
@liancheng Yes. Although I'm using |
|
Actually you can just set |
|
Hi @iven, At least with the existing code, the user should not set |
|
@liancheng @andrewor14 Thanks, it works! I'm closing this. |
This is useful when $SPARK_HOME of the submission machine is not the same as the slave machinese, eg. when running with Mesos.