You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by sryza <gi...@git.apache.org> on 2014/07/30 20:56:04 UTC

[GitHub] spark pull request: SPARK-2664. Deal with `--conf` options in spar...

GitHub user sryza opened a pull request:

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

    SPARK-2664. Deal with `--conf` options in spark-submit that relate to fl...

    ...ags

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

    $ git pull https://github.com/sryza/spark sandy-spark-2664

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

    https://github.com/apache/spark/pull/1665.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 #1665
    
----
commit 0518c6311a3fa9a1ec094d54fc43816cffbd0b10
Author: Sandy Ryza <sa...@cloudera.com>
Date:   2014-07-30T18:42:52Z

    SPARK-2664. Deal with `--conf` options in spark-submit that relate to flags

----


---
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.
---

[GitHub] spark pull request: SPARK-2664. Deal with `--conf` options in spar...

Posted by pwendell <gi...@git.apache.org>.
Github user pwendell commented on the pull request:

    https://github.com/apache/spark/pull/1665#issuecomment-50713560
  
    Looks good Sandy! One small question.


---
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.
---

[GitHub] spark pull request: SPARK-2664. Deal with `--conf` options in spar...

Posted by sryza <gi...@git.apache.org>.
Github user sryza commented on a diff in the pull request:

    https://github.com/apache/spark/pull/1665#discussion_r15631418
  
    --- Diff: core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala ---
    @@ -184,7 +184,7 @@ object SparkSubmit {
           OptionAssigner(args.archives, YARN, CLIENT, sysProp = "spark.yarn.dist.archives"),
     
           // Yarn cluster only
    -      OptionAssigner(args.name, YARN, CLUSTER, clOption = "--name", sysProp = "spark.app.name"),
    --- End diff --
    
    The spark.app.name already gets set above with:
          OptionAssigner(args.name, ALL_CLUSTER_MGRS, ALL_DEPLOY_MODES, sysProp = "spark.app.name"),
    so this is just removing a redundancy.
    
    For reasons that are too boring to be worth going into, this was more thematically affiliated to the rest of the changes before I rebased it.  Not strictly related to this patch anymore, so I can fix it separately if you'd like.


---
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.
---

[GitHub] spark pull request: SPARK-2664. Deal with `--conf` options in spar...

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

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


---
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.
---

[GitHub] spark pull request: SPARK-2664. Deal with `--conf` options in spar...

Posted by pwendell <gi...@git.apache.org>.
Github user pwendell commented on a diff in the pull request:

    https://github.com/apache/spark/pull/1665#discussion_r15626537
  
    --- Diff: core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala ---
    @@ -184,7 +184,7 @@ object SparkSubmit {
           OptionAssigner(args.archives, YARN, CLIENT, sysProp = "spark.yarn.dist.archives"),
     
           // Yarn cluster only
    -      OptionAssigner(args.name, YARN, CLUSTER, clOption = "--name", sysProp = "spark.app.name"),
    --- End diff --
    
    Why does this one change?


---
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.
---

[GitHub] spark pull request: SPARK-2664. Deal with `--conf` options in spar...

Posted by vanzin <gi...@git.apache.org>.
Github user vanzin commented on the pull request:

    https://github.com/apache/spark/pull/1665#issuecomment-50678711
  
    LGTM.


---
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.
---

[GitHub] spark pull request: SPARK-2664. Deal with `--conf` options in spar...

Posted by pwendell <gi...@git.apache.org>.
Github user pwendell commented on a diff in the pull request:

    https://github.com/apache/spark/pull/1665#discussion_r15661690
  
    --- Diff: core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala ---
    @@ -184,7 +184,7 @@ object SparkSubmit {
           OptionAssigner(args.archives, YARN, CLIENT, sysProp = "spark.yarn.dist.archives"),
     
           // Yarn cluster only
    -      OptionAssigner(args.name, YARN, CLUSTER, clOption = "--name", sysProp = "spark.app.name"),
    --- End diff --
    
    No problem, it's fine to have it here, I was just not sure why it was needed.


---
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.
---

[GitHub] spark pull request: SPARK-2664. Deal with `--conf` options in spar...

Posted by andrewor14 <gi...@git.apache.org>.
Github user andrewor14 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/1665#discussion_r15673470
  
    --- Diff: core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala ---
    @@ -184,7 +184,7 @@ object SparkSubmit {
           OptionAssigner(args.archives, YARN, CLIENT, sysProp = "spark.yarn.dist.archives"),
     
           // Yarn cluster only
    -      OptionAssigner(args.name, YARN, CLUSTER, clOption = "--name", sysProp = "spark.app.name"),
    --- End diff --
    
    It was first added in #699, but in #1538 we made `spark.app.name` available for all deploy modes and all cluster managers, which includes yarn-cluster. With these changes setting `spark.app.name` again here becomes redundant.


---
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.
---