You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by ScrapCodes <gi...@git.apache.org> on 2014/06/06 13:34:41 UTC

[GitHub] spark pull request: [SPARK-1812][wip]

GitHub user ScrapCodes opened a pull request:

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

    [SPARK-1812][wip]

    Was just trying out akka 2.3.3 (theoretically it should all work.)

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

    $ git pull https://github.com/ScrapCodes/spark-1 SPARK-1812/2.11-cross-build

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

    https://github.com/apache/spark/pull/996.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 #996
    
----
commit 3170fdf0f9f73c29e3289ecf1fcd71eddef4436d
Author: Prashant Sharma <pr...@imaginea.com>
Date:   2014-06-06T11:29:36Z

    wip

----


---
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-1812][wip]

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

    https://github.com/apache/spark/pull/996#discussion_r15702768
  
    --- Diff: assembly/pom.xml ---
    @@ -26,7 +26,7 @@
       </parent>
     
       <groupId>org.apache.spark</groupId>
    -  <artifactId>spark-assembly_2.10</artifactId>
    +  <artifactId>spark-assembly_${scala.binary.version}</artifactId>
    --- End diff --
    
    It's safe to ignore the warning if you want to use this kind of parameterized artifactId in your local builds, but we can't do that in the actual Apache source code and release builds.  We may need to start using Maven archetypes (essentially a preprocessing step that will generate the POMs) in order to support cross-compiling for 2.10 and 2.11.


---
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-1812][wip]

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

    https://github.com/apache/spark/pull/996#issuecomment-50439713
  
    @ScrapCodes @mateiz looks like there is some parallel efforts here (github.com/avati/spark/commits/scala-2.11). It is true some upstream artifacts are pending (from other projects). However there are unofficial artifacts available to make progress on the issue. Right now I'm debugging akka-2.3.x related runtime issues. If you guys have "solved" this already, please share the info.
    
    I would like to collaborate on this task and avoid duplicate efforts. 


---
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-1812] Enable cross build for scala 2.11...

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

    https://github.com/apache/spark/pull/996#discussion_r15770288
  
    --- Diff: assembly/pom.xml ---
    @@ -26,7 +26,7 @@
       </parent>
     
       <groupId>org.apache.spark</groupId>
    -  <artifactId>spark-assembly_2.10</artifactId>
    +  <artifactId>spark-assembly_${scala.binary.version}</artifactId>
    --- End diff --
    
    It's not a question of ugliness, but whether we can publish what are in actuality mal-formed POMs in an Apache release.


---
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-1812][wip]

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

    https://github.com/apache/spark/pull/996#issuecomment-50486251
  
    @mateiz We still do not have all of them, I think but some of them might not be very critical. They are mostly related to external/*. I can disable the modules for which those artifacts are missing only in the cross build for scala 2.11 specifically, they would still be available by scala 2.10 though. 
    I can start working on this if you think its a priority. 
    
    @avati You are welcome with your contribution, if you think you completed any of the subtask you can send a PR.


---
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-1812] Enable cross build for scala 2.11...

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

    https://github.com/apache/spark/pull/996#discussion_r15774561
  
    --- Diff: assembly/pom.xml ---
    @@ -26,7 +26,7 @@
       </parent>
     
       <groupId>org.apache.spark</groupId>
    -  <artifactId>spark-assembly_2.10</artifactId>
    +  <artifactId>spark-assembly_${scala.binary.version}</artifactId>
    --- End diff --
    
    OK, I agree. I just inspected the generated pom, and the artifactId is
    literally the string "spark_assembly_${scala.binary.version}". Till now I
    always thought that along with the warning the variable is evaluated too,
    but this clearly does not work at all.


---
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-1812][wip]

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

    https://github.com/apache/spark/pull/996#discussion_r15679675
  
    --- Diff: assembly/pom.xml ---
    @@ -26,7 +26,7 @@
       </parent>
     
       <groupId>org.apache.spark</groupId>
    -  <artifactId>spark-assembly_2.10</artifactId>
    +  <artifactId>spark-assembly_${scala.binary.version}</artifactId>
    --- End diff --
    
    Using ${scala.binary.version} in artifactId gives the following warning in maven:
    
    [WARNING] 
    [WARNING] Some problems were encountered while building the effective model for org.apache.spark:spark-core_2.11:jar:1.1.0-SNAPSHOT
    [WARNING] 'artifactId' contains an expression but should be a constant. @ org.apache.spark:spark-core_${scala.binary.version}:1.1.0-SNAPSHOT, /Users/avati/work/spark/core/pom.xml, line 29, column 15
    [WARNING] 
    [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
    [WARNING] 
    [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
    [WARNING] 


---
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-1812][wip]

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

    https://github.com/apache/spark/pull/996#issuecomment-45361463
  
    Merged build finished. All automated tests 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.
---

[GitHub] spark pull request: [SPARK-1812] Enable cross build for scala 2.11...

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

    https://github.com/apache/spark/pull/996#discussion_r15770017
  
    --- Diff: assembly/pom.xml ---
    @@ -26,7 +26,7 @@
       </parent>
     
       <groupId>org.apache.spark</groupId>
    -  <artifactId>spark-assembly_2.10</artifactId>
    +  <artifactId>spark-assembly_${scala.binary.version}</artifactId>
    --- End diff --
    
    After some trial, I tend to agree with @ScrapCodes, that if it is just a warning we could probably ignore it and use variable names in artifactids. Keeps things a lot simpler that way. Besides, it really doesn't seem like an ugly hack to use variables in artifactid, somehow maven seems to be unhappy for unknown reason.


---
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-1812][wip]

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

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

[GitHub] spark pull request: [SPARK-1812][wip]

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

    https://github.com/apache/spark/pull/996#issuecomment-50429561
  
    @ScrapCodes is this fixed upstream yet in terms of publishing the artifacts? Some people have been asking about it.


---
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-1812] Enable cross build for scala 2.11...

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

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


---
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-1812] Enable cross build for scala 2.11...

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

    https://github.com/apache/spark/pull/996#discussion_r15743162
  
    --- Diff: assembly/pom.xml ---
    @@ -26,7 +26,7 @@
       </parent>
     
       <groupId>org.apache.spark</groupId>
    -  <artifactId>spark-assembly_2.10</artifactId>
    +  <artifactId>spark-assembly_${scala.binary.version}</artifactId>
    --- End diff --
    
    I won't claim to be a maven-archetype-plugin expert, or to have figured out everything that we would need to do to start using archetyped builds (e.g. I haven't got sub-project builds with archetypes figured out yet), but the basics of archetypes are pretty simple to use and do get us a significant part of the way to cross-building Spark.
    
    To see how the rudiments work, you should be able to quickly and easily do the following:
    
    1) Clone the spark repo
    2) cd to spark/core
    3) mvn archetype:create-from-project
    4) cd into the new target/generated-sources/archetype
    5) mvn install
    6) make a tmp dir someplace and cd into it
    7) mvn archetype:generate -DarchetypeCatalog=local -DgroupId=org.apache.spark -DartifactId=spark-core_2.11 -Dversion=2.0.0-SNAPSHOT
    8) select '1', the only archetype that you now have installed locally
    9) observe that you now have a spark-core tree ready to build spark-core_2.11-2.0.0-SNAPSHOT (except for the spark-parent reference -- I told you, I haven't got sub-projects figured out yet.)


---
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-1812][wip]

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

    https://github.com/apache/spark/pull/996#discussion_r15689839
  
    --- Diff: assembly/pom.xml ---
    @@ -26,7 +26,7 @@
       </parent>
     
       <groupId>org.apache.spark</groupId>
    -  <artifactId>spark-assembly_2.10</artifactId>
    +  <artifactId>spark-assembly_${scala.binary.version}</artifactId>
    --- End diff --
    
    Yeah, you can't write that in the artifact name. It should be a constant string and should stay "2.10". In a PR to upgrade to 2.11 later, all of these should be "2.11" ... which means 2.10 support may have to be a branch at that point? or it may be safe to ignore the warning, if it works.


---
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-1812][wip]

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

    https://github.com/apache/spark/pull/996#issuecomment-45731226
  
    This is currently blocked by unavailability of few artifacts mentioned in Jira comment for scala 2.11.


---
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-1812][wip]

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

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

[GitHub] spark pull request: [SPARK-1812][wip]

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

    https://github.com/apache/spark/pull/996#issuecomment-50513205
  
    @ScrapCodes that sounds good actually, it would let us have Akka 2.3 in Scala 2.10 and also start experimenting with Scala 2.11.


---
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-1812] Enable cross build for scala 2.11...

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

    https://github.com/apache/spark/pull/996#discussion_r15741984
  
    --- Diff: assembly/pom.xml ---
    @@ -26,7 +26,7 @@
       </parent>
     
       <groupId>org.apache.spark</groupId>
    -  <artifactId>spark-assembly_2.10</artifactId>
    +  <artifactId>spark-assembly_${scala.binary.version}</artifactId>
    --- End diff --
    
    Maintaining a separate branch is difficult and requires sometimes non trivial merges to keep it in sync. 
    I don't really know, what an archetype build which generates pom(s) for different scala version mean.
    I feel we can have some release scripts that can take care of releasing maven poms with expression in artifact replaced by its corresponding constant. This sort of thing sbt does natively. I think this is much better than complicating the build further, because once we have an archetype we will have to adjust sbt a great deal to accommodate it. 


---
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-1812][wip]

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

    https://github.com/apache/spark/pull/996#issuecomment-45361464
  
    All automated tests passed.
    Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/15509/


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