You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by nezihyigitbasi <gi...@git.apache.org> on 2016/06/16 17:49:36 UTC

[GitHub] spark pull request #13709: [SPARK-15782] [YARN] Fix spark.jars and spark.yar...

GitHub user nezihyigitbasi opened a pull request:

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

    [SPARK-15782] [YARN] Fix spark.jars and spark.yarn.dist.jars handling

    ## What changes were proposed in this pull request?
    
    When `--packages` is specified with spark-shell the classes from those packages cannot be found, which I think is due to some of the changes in SPARK-12343. 
    
    ## How was this patch tested?
    
    Tested manually with both scala 2.10 and 2.11 repls.
    
    @vanzin @davies can you guys please review?
    


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

    $ git pull https://github.com/nezihyigitbasi/spark SPARK-15782

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

    https://github.com/apache/spark/pull/13709.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 #13709
    
----
commit ecb24f1135a56ae8cf4d16aa072a8ea095a72483
Author: Nezih Yigitbasi <ny...@netflix.com>
Date:   2016-06-13T17:58:08Z

    Fix spark.jars and spark.yarn.dist.jars handling

commit 34cb9156c3d7f0ee701b6810d1d5534508652bb4
Author: Marcelo Vanzin <va...@cloudera.com>
Date:   2016-06-15T21:51:45Z

    [SPARK-15782][hotfix] Fix compilation with Scala 2.10.

----


---
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 #13709: [SPARK-15782] [YARN] Fix spark.jars and spark.yarn.dist....

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

    https://github.com/apache/spark/pull/13709
  
    Merged build finished. Test PASSed.


---
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 #13709: [SPARK-15782] [YARN] Fix spark.jars and spark.yarn.dist....

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

    https://github.com/apache/spark/pull/13709
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/60652/
    Test FAILed.


---
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 #13709: [SPARK-15782] [YARN] Fix spark.jars and spark.yarn.dist....

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

    https://github.com/apache/spark/pull/13709
  
    **[Test build #60652 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/60652/consoleFull)** for PR 13709 at commit [`34cb915`](https://github.com/apache/spark/commit/34cb9156c3d7f0ee701b6810d1d5534508652bb4).
     * This patch **fails Spark unit tests**.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
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 #13709: [SPARK-15782] [YARN] Fix spark.jars and spark.yarn.dist....

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

    https://github.com/apache/spark/pull/13709
  
    Merging to master / 2.0.


---
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 #13709: [SPARK-15782] [YARN] Fix spark.jars and spark.yar...

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

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


---
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 #13709: [SPARK-15782] [YARN] Fix spark.jars and spark.yarn.dist....

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

    https://github.com/apache/spark/pull/13709
  
    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


[GitHub] spark issue #13709: [SPARK-15782] [YARN] Fix spark.jars and spark.yarn.dist....

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

    https://github.com/apache/spark/pull/13709
  
    retest this please


---
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 #13709: [SPARK-15782] [YARN] Fix spark.jars and spark.yarn.dist....

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

    https://github.com/apache/spark/pull/13709
  
    **[Test build #60661 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/60661/consoleFull)** for PR 13709 at commit [`34cb915`](https://github.com/apache/spark/commit/34cb9156c3d7f0ee701b6810d1d5534508652bb4).


---
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 #13709: [SPARK-15782] [YARN] Fix spark.jars and spark.yarn.dist....

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

    https://github.com/apache/spark/pull/13709
  
    **[Test build #60666 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/60666/consoleFull)** for PR 13709 at commit [`699e269`](https://github.com/apache/spark/commit/699e2694d7b6a119bd5a067570571f0139407605).


---
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 #13709: [SPARK-15782] [YARN] Fix spark.jars and spark.yarn.dist....

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

    https://github.com/apache/spark/pull/13709
  
    LGTM since I already tested the 2.10 changes yesterday.


---
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 #13709: [SPARK-15782] [YARN] Fix spark.jars and spark.yarn.dist....

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

    https://github.com/apache/spark/pull/13709
  
    Merged build finished. Test FAILed.


---
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 #13709: [SPARK-15782] [YARN] Fix spark.jars and spark.yarn.dist....

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

    https://github.com/apache/spark/pull/13709
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/60666/
    Test PASSed.


---
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 #13709: [SPARK-15782] [YARN] Fix spark.jars and spark.yarn.dist....

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

    https://github.com/apache/spark/pull/13709
  
    Merged build finished. Test PASSed.


---
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 #13709: [SPARK-15782] [YARN] Fix spark.jars and spark.yarn.dist....

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

    https://github.com/apache/spark/pull/13709
  
    **[Test build #60652 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/60652/consoleFull)** for PR 13709 at commit [`34cb915`](https://github.com/apache/spark/commit/34cb9156c3d7f0ee701b6810d1d5534508652bb4).


---
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 #13709: [SPARK-15782] [YARN] Fix spark.jars and spark.yarn.dist....

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

    https://github.com/apache/spark/pull/13709
  
    **[Test build #60666 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/60666/consoleFull)** for PR 13709 at commit [`699e269`](https://github.com/apache/spark/commit/699e2694d7b6a119bd5a067570571f0139407605).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
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 #13709: [SPARK-15782] [YARN] Fix spark.jars and spark.yar...

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

    https://github.com/apache/spark/pull/13709#discussion_r67426717
  
    --- Diff: core/src/main/scala/org/apache/spark/util/Utils.scala ---
    @@ -2352,6 +2352,26 @@ private[spark] object Utils extends Logging {
         log.info(s"Started daemon with process name: ${Utils.getProcessName()}")
         SignalUtils.registerLogger(log)
       }
    +
    +  /**
    +   * Unions two comma-separated lists of files and filters out empty strings.
    +   */
    +  def unionFileLists(leftList: Option[String], rightList: Option[String]): Set[String] = {
    +    var allFiles = Set[String]()
    +    leftList.foreach { value => allFiles ++= value.split(",") }
    +    rightList.foreach { value => allFiles ++= value.split(",") }
    +    allFiles.filter { _.nonEmpty }
    +  }
    +
    +  def getUserJars(conf: SparkConf): Seq[String] = {
    --- End diff --
    
    can you add a java doc on this and explain what happens in YARN vs other modes?


---
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 #13709: [SPARK-15782] [YARN] Fix spark.jars and spark.yarn.dist....

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

    https://github.com/apache/spark/pull/13709
  
    **[Test build #60661 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/60661/consoleFull)** for PR 13709 at commit [`34cb915`](https://github.com/apache/spark/commit/34cb9156c3d7f0ee701b6810d1d5534508652bb4).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
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 #13709: [SPARK-15782] [YARN] Fix spark.jars and spark.yarn.dist....

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

    https://github.com/apache/spark/pull/13709
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/60661/
    Test PASSed.


---
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 #13709: [SPARK-15782] [YARN] Fix spark.jars and spark.yarn.dist....

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

    https://github.com/apache/spark/pull/13709
  
    ok to test


---
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 #13709: [SPARK-15782] [YARN] Fix spark.jars and spark.yarn.dist....

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

    https://github.com/apache/spark/pull/13709
  
    added javadoc for `getUserJars()`.


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