-
Notifications
You must be signed in to change notification settings - Fork 988
Allow distribute scala 2.12 and update to spark 2.4.3 #1308
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
Conversation
Sorry for the wait on this issue folks. I'll look into getting this tested and reviewed soon. The way we cross compile Scala in the build has been up in the air for a while due to some external forces on the project (mostly needing to upgrade our version of Gradle, but that upgrade broke our Scala cross compile stuff). Now that the concerns around our compile logic are clearing up, we can start looking at this in earnest. |
@jbaiera Any update here? |
gradle.properties
Outdated
# same as Spark's | ||
scala210Version = 2.10.7 | ||
scala210MajorVersion = 2.10 | ||
scala211Version = 2.11.12 | ||
scala211MajorVersion = 2.11 | ||
scala212Version = 2.12.8 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2.12.10 is the most recent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I will change.
Done |
Any updates? Looks like it's almost there. :) |
It seems that Travis doesn't have Java 11 config. |
I would ask the legitimacy of that move (java 8 -> java 11) for library build, up to my knowledge spark(2.4, I haven't dig into 3.0 topic yet) doesn't explicitly support java 11. Sorry, when I reread a thread I got your point. So with the above point, I mentioned the discrepancy. |
I'm not sure why this build needs java 11, there is a validation on build for Java >= 11.
At the end, it also needs Java 8 for hadoop. :( |
@neoramon I share your confusion on the Travis CI situation. I've tried a number of configurations and none of them have panned out. We are working on changing the CI for the project to use the public Jenkins builds for the CI checks instead. As for the reasoning behind the move to Java 11+ for the build: We use the Elasticsearch project Gradle build tools to stand up clusters for our testing. In order to stay in sync with the versions of the build tools (which only support Java 12), we need the build to run on that same version of Java. That said, we still need Java 8 in an environment variable in order to compile Scala with the correct versions. |
👍 @neoramon @jbaiera - thank you for working on this! I've compiled on jdk8 and scala 2.12.10 with basic app tests passing. Just the src code changes (I was half way though before I found this PR ;) Dataproc on GCP image preview is 2.12 now, so this is becoming more critical - adding my +1 here @neoramon - thank you for the PR! |
Hi there! Any updates on this? Is there any way to help? Thanks for your work on this issue so far! 😄 |
@rlmark - I'm watching this as well, here is the latest relevant comment: #1412 (comment) |
Hi all, a quick update here: I've logged an issue on the project pertaining to our growing pains with building Scala. This PR will most likely need to wait for that issue to be resolved before it can be moved any further. |
Do you have a rough timeline for when you think these things will happen @jbaiera? And, is it possible to hack this together by building some of the parts myself? |
Any updates on this? |
@neoramon i'm trying to build your fork locally https://github.com/neoramon/elasticsearch-hadoop and it seems to fail with
please help? |
- modelled from elastic#1308 - added a script to install it locally for my mediocre test purposes
- modelled from elastic#1308 - added a script to install it locally for my mediocre test purposes
Any updates on this? /2 |
This is PR is old now and it will need an update from master. |
I just did merge with master and saw that travis file was removed, and it looks that all checks have passed! 👍 |
Ccan someone review and merge? |
Is there any news on when it'll be merged? |
gradle.properties
Outdated
# same as Spark's | ||
scala210Version = 2.10.7 | ||
scala210MajorVersion = 2.10 | ||
scala211Version = 2.11.12 | ||
scala211MajorVersion = 2.11 | ||
scala212Version = 2.12.10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Latest Scala 2.12 version is now 2.12.12
I'm closing this PR. |
Even im facing this issue with Spark 3.0 and no option to use scala 2.11 as spark supports min 2.12 onwards from 3.0.0 |
What do you think about distributing Elasticsearch spark" in Scala 2.12 as well?