You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by ahirreddy <gi...@git.apache.org> on 2015/09/11 02:23:33 UTC

[GitHub] spark pull request: Remove explicit Scala version for sbt project ...

GitHub user ahirreddy opened a pull request:

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

    Remove explicit Scala version for sbt project build files

    Previously, `project/plugins.sbt` explicitly set scalaVersion to 2.10.4.  This
    can cause issues when using a version of sbt that is compiled against a
    different version of Scala (for example sbt 0.13.9 uses 2.10.5). Removing this
    explict setting will cause build files to be compiled and run against the same
    version of Scala that sbt is compiled against.
    
    Note that this only applies to the project build files (items in project/), it
    is distinct from the version of Scala we target for the actual spark
    compilation.

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

    $ git pull https://github.com/ahirreddy/spark sbt-scala-version-fix

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

    https://github.com/apache/spark/pull/8709.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 #8709
    
----
commit f17ee06017c2de949fa173f19e1e0d37b6cc46ec
Author: Ahir Reddy <ah...@gmail.com>
Date:   2015-09-10T21:56:11Z

    Remove explicit Scala version for sbt project build files
    
    Previously, `project/plugins.sbt` explicitly set scalaVersion to 2.10.4.  This
    can cause issues when using a version of sbt that is compiled against a
    different version of Scala (for example sbt 0.13.9 uses 2.10.5). Removing this
    explict setting will cause build files to be compiled and run against the same
    version of Scala that sbt is compiled against.
    
    Note that this only applies to the project build files (items in project/), it
    is distinct from the version of Scala we target for the actual spark
    compilation.

----


---
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: [SPARK-10556] Remove explicit Scala version fo...

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

    https://github.com/apache/spark/pull/8709#issuecomment-139527273
  
      [Test build #1741 has finished](https://amplab.cs.berkeley.edu/jenkins/job/NewSparkPullRequestBuilder/1741/console) for   PR 8709 at commit [`f17ee06`](https://github.com/apache/spark/commit/f17ee06017c2de949fa173f19e1e0d37b6cc46ec).
     * 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: [SPARK-10556] Remove explicit Scala version fo...

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

    https://github.com/apache/spark/pull/8709#issuecomment-139419874
  
    @vanzin I believe that is what SBT expects, I'm not sure why this setting was there in the first place.  You shouldn't be running files compiled with different versions of scala together or you can get weird abstract method errors.


---
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: [SPARK-10556] Remove explicit Scala version fo...

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

    https://github.com/apache/spark/pull/8709#issuecomment-139418649
  
      [Test build #42305 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/42305/consoleFull) for   PR 8709 at commit [`f17ee06`](https://github.com/apache/spark/commit/f17ee06017c2de949fa173f19e1e0d37b6cc46ec).


---
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: [SPARK-10556] Remove explicit Scala version fo...

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

    https://github.com/apache/spark/pull/8709#issuecomment-139418136
  
    > Removing this explict setting will cause build files to be compiled and run against the same version of Scala that sbt is compiled against.
    
    I'm not too sure that's desirable, though.


---
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: [SPARK-10556] Remove explicit Scala version fo...

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

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


---
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: [SPARK-10556] Remove explicit Scala version fo...

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

    https://github.com/apache/spark/pull/8709#issuecomment-139427616
  
    Ah, ok. That clarifies things. In that case, move on, nothing to see here. :-)


---
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: [SPARK-10556] Remove explicit Scala version fo...

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

    https://github.com/apache/spark/pull/8709#issuecomment-139465363
  
      [Test build #1740 has finished](https://amplab.cs.berkeley.edu/jenkins/job/NewSparkPullRequestBuilder/1740/console) for   PR 8709 at commit [`f17ee06`](https://github.com/apache/spark/commit/f17ee06017c2de949fa173f19e1e0d37b6cc46ec).
     * 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 pull request: Remove explicit Scala version for sbt project ...

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

    https://github.com/apache/spark/pull/8709#issuecomment-139417714
  
    Merged build started.


---
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: [SPARK-10556] Remove explicit Scala version fo...

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

    https://github.com/apache/spark/pull/8709#issuecomment-139450743
  
      [Test build #1740 has started](https://amplab.cs.berkeley.edu/jenkins/job/NewSparkPullRequestBuilder/1740/consoleFull) for   PR 8709 at commit [`f17ee06`](https://github.com/apache/spark/commit/f17ee06017c2de949fa173f19e1e0d37b6cc46ec).


---
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: [SPARK-10556] Remove explicit Scala version fo...

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

    https://github.com/apache/spark/pull/8709#issuecomment-139422626
  
    I'm not doubting that, just questioning the fact that we're now allowing people to build Spark against "non-blessed" versions of Scala. Which might be ok, just feels a little weird.
    
    (The alternative would be to fail if the version is not the expected.)


---
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: [SPARK-10556] Remove explicit Scala version fo...

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

    https://github.com/apache/spark/pull/8709#issuecomment-139435118
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/42305/
    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 pull request: [SPARK-10556] Remove explicit Scala version fo...

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

    https://github.com/apache/spark/pull/8709#issuecomment-139423350
  
    To clarify, this is not changing how Spark is built.  It's changing how `project/SparkBuild.scala` is built, which in turn is used to compile spark when someone is using SBT. `project/SparkBuild.scala` will have its own notion of `scalaVersion` that will be used to compile Spark.


---
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: Remove explicit Scala version for sbt project ...

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

    https://github.com/apache/spark/pull/8709#issuecomment-139417700
  
     Merged build triggered.


---
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: [SPARK-10556] Remove explicit Scala version fo...

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

    https://github.com/apache/spark/pull/8709#issuecomment-139498830
  
      [Test build #1741 has started](https://amplab.cs.berkeley.edu/jenkins/job/NewSparkPullRequestBuilder/1741/consoleFull) for   PR 8709 at commit [`f17ee06`](https://github.com/apache/spark/commit/f17ee06017c2de949fa173f19e1e0d37b6cc46ec).


---
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: [SPARK-10556] Remove explicit Scala version fo...

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

    https://github.com/apache/spark/pull/8709#issuecomment-139529858
  
    Merged into master / 1.5 / 1.4 / 1.3


---
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: [SPARK-10556] Remove explicit Scala version fo...

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

    https://github.com/apache/spark/pull/8709#issuecomment-139435004
  
      [Test build #42305 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/42305/console) for   PR 8709 at commit [`f17ee06`](https://github.com/apache/spark/commit/f17ee06017c2de949fa173f19e1e0d37b6cc46ec).
     * 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 pull request: [SPARK-10556] Remove explicit Scala version fo...

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

    https://github.com/apache/spark/pull/8709#issuecomment-139419889
  
    The problem with explicitly setting a different Scala version for build files is that SBT expects plugins and build files to be compiled against the same version of Scala it is running on, otherwise it's possible to run into errors (`NoSuchMethodError` or `ClassNotFoundException`) that arise from changes in Scala.


---
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: [SPARK-10556] Remove explicit Scala version fo...

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

    https://github.com/apache/spark/pull/8709#issuecomment-139435116
  
    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