You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by andreweduffy <gi...@git.apache.org> on 2016/06/28 20:56:01 UTC

[GitHub] spark pull request #13953: [SPARK-16265][SUBMIT] Addition of --driver-jre Fl...

GitHub user andreweduffy opened a pull request:

    https://github.com/apache/spark/pull/13953

    [SPARK-16265][SUBMIT] Addition of --driver-jre Flag to SparkSubmit

    ## What changes were proposed in this pull request?
    
    1. Addition of `--driver-jre` flag to `SparkSubmitArguments`
    2. Now when `--driver-jre` is specified to `SparkSubmit` and it is connecting to a YARN master, the driver will zip up a copy of its in-use JRE and ship it to the YARN cluster as part of `spark.yarn.dist.archives`. Then by setting `spark.executorEnv.JAVA_HOME` and `spark.appMasterEnv.JAVA_HOME` to point to their local copies, use of specific versions of Java can be had even on YARN clusters that do not have those versions pre-installed.
    
    ## How was this patch tested?
    
    Compiled the Spark examples with Java 8, did a Java 8 `spark-submit --driver-jre` of `SparkPi`  to a Java 7 YARN cluster, executors and AM used Java 8 without issue. Running without shipping the JRE results in errors due to Java version differences.
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/andreweduffy/spark master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/13953.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #13953
    
----
commit abd80d1bacd66eea6dfeb33fde3caa34bd7c9c7d
Author: Andrew Duffy <ro...@aduffy.org>
Date:   2016-06-28T10:44:46Z

    Addition of --driver-jre Flag to SparkSubmit

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #13953: [SPARK-16265][SUBMIT] Addition of --driver-jre Fl...

Posted by andreweduffy <gi...@git.apache.org>.
Github user andreweduffy closed the pull request at:

    https://github.com/apache/spark/pull/13953


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #13953: [SPARK-16265][SUBMIT] Addition of --driver-jre Flag to S...

Posted by petermaxlee <gi...@git.apache.org>.
Github user petermaxlee commented on the issue:

    https://github.com/apache/spark/pull/13953
  
    This seems pretty weird use case -- and can get into a lot of problems ....



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #13953: [SPARK-16265][SUBMIT] Addition of --driver-jre Flag to S...

Posted by andreweduffy <gi...@git.apache.org>.
Github user andreweduffy commented on the issue:

    https://github.com/apache/spark/pull/13953
  
    @petermaxlee can you give an example of how it can "get into a lot of problems"? The use case seems weird if you're usually developing on hardware that you control, but makes more sense if you're developing a Spark application and then want to give it to someone to run on their own cluster. It integrates with `SparkLauncher` so that you can spawn cluster jobs that use the correct version of Java without forcing the recipient of the app to futz with their cluster.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #13953: [SPARK-16265][SUBMIT] Addition of --driver-jre Flag to S...

Posted by srowen <gi...@git.apache.org>.
Github user srowen commented on the issue:

    https://github.com/apache/spark/pull/13953
  
    See comments in the JIRA, including mine. I do not think this is in scope for Spark or worth maintaining and troubleshooting. 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #13953: [SPARK-16265][SUBMIT] Addition of --driver-jre Flag to S...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/13953
  
    Can one of the admins verify this patch?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org