-
Notifications
You must be signed in to change notification settings - Fork 393
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade Apache Spark to 2.4 #184
Comments
0.5.0 release is going to be with Spark 2.3.2. We can start working on adding Spark 2.4.0 once we are done with the release. In general we wait until the x.y.1 version is out which usually is more stable than |
Update: 0.5.0 was just released. |
@seratch since it might take some time to implement - let's start adding spark 2.4.x support (if you have time of course). Ideally it would be great to have a cross version build for Spark versions 2.3.x/2.4.x and Scala 2.11/2.12. For example: WDYT? |
@tovbinm Sounds nice. It's also possible to have the The idea is inspired by Scala.js bin versions. Scala.js libraries have |
Yeah, thank makes more sense to include it in the artifact name instead of the version. Let’s just drop the dash and I only keep the major Spark version, I.e: |
This plugin seems promising - https://github.com/ADTRAN/gradle-scala-multiversion-plugin (though after I tried it, scoverage plugin broke): And a few more options that I found:
We should evaluate which one is the best option and go from there. |
I attempted building with Scala 2.12, but the build failed immediately because there is now Scala 2.12 version of this: |
@deanwampler try this solution - ngbinh/gradle-scalastyle-plugin#39 It looks like the jar is there - https://dl.bintray.com/ngbinh/maven/org/github/ngbinh/scalastyle/gradle-scalastyle-plugin_2.12/ |
Thanks. I found that last night, then proceeded to misspell his name... That worked, but now I'm stuck on Gradle's hard-coded (?) integration with the ancient version of zinc (gradle/gradle#2158). There's a PR for upgrading that appears to be languishing (gradle/gradle#8485). |
I am starting to think if it’s worth moving to sbt or other build tool that can handle the cross build properly. The value proposition of gradle have somewhat finished over time all of the functionality that we need is already present in sbt with plugins: scalastyle check, spark submit, bin tray publish etc. |
Spark 2.4.1 is out - https://spark.apache.org/news/spark-2-4-1-released.html and it's officially GA-ed Scala 2.12 support. Yay! |
i tried to get this going for scala 2.12 as well. seems i ran into same issue as @deanwampler with old zinc not liking scala 2.12 i get a lot of errors like:
although if kafka can compile for scala 2.12 with gradle then it sounds like i am messing up somehow here. |
removing -optimize from scalaCompileOptions seems to make the errors go away. now i get much further along. i now have a slain compiler on:
issue seems to be on line 460 of ModelInsights.scala
|
ok with a little extra type help the compiler no longer dies. |
sorry i think i have polluted this thread enough, will create separate ticket for scala 2.12 |
@koertkuipers could you please share your branch with Scala 2.12 so we could follow up with the migration? |
FYI, #327 is upto date with changes from master. |
Hopefully we can release this one next. |
As you may already know, Apache Spark 2.4.0 was released on Nov 3.
https://spark.apache.org/releases/spark-release-2-4-0.html
Are you already planning to upgrade Spark version? I am interested in working on the upgrade task.
The text was updated successfully, but these errors were encountered: