Skip to content

Remove Spark 2.x #2316

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

Merged
merged 8 commits into from
Jan 17, 2025
Merged

Remove Spark 2.x #2316

merged 8 commits into from
Jan 17, 2025

Conversation

samxbr
Copy link
Contributor

@samxbr samxbr commented Jan 3, 2025

After Spark 2.x deprecation in 8.18 #2305, this change removes support for it in 9.0.

@samxbr samxbr marked this pull request as ready for review January 15, 2025 00:35
@samxbr samxbr requested review from masseyke and jbaiera January 15, 2025 00:35
Copy link
Member

@jbaiera jbaiera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM pending comments addressed. I think we'll need to make sure that we are logging a deprecation warning when Spark 2.x is used in 8.x. We may also want to discuss bumping the default scala supported version to 2.13 instead of leaving it on 2.12 considering how long these major releases live for, but that can be a follow up after more discussion.

[[removals-9.0]]
==== Removal of Spark 2.x

Support for the Spark 2.x has been removed in {eh} 9.0, Spark 3.x is still supported.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets instead say that Spark 3.x is the new default support version

@@ -10,12 +10,10 @@ apply plugin: 'spark.variants'
sparkVariants {
capabilityGroup 'org.elasticsearch.spark.variant'

// Changing the formatting of these lines could break .buildkite/pipeline.py, it uses regex to parse the `spark20scala212` part
// Changing the formatting of these lines could break .buildkite/pipeline.py, it uses regex to parse the `spark30scala212` part
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should check in with delivery about this line to see if anything needs to be updated in CI for this change

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I also found this old PR of yours that removes the old Spark from release manager.

@samxbr
Copy link
Contributor Author

samxbr commented Jan 16, 2025

LGTM pending comments addressed. I think we'll need to make sure that we are logging a deprecation warning when Spark 2.x is used in 8.x. We may also want to discuss bumping the default scala supported version to 2.13 instead of leaving it on 2.12 considering how long these major releases live for, but that can be a follow up after more discussion.

+1 on making Scala 2.13 the default, I can try doing that as a follow up.

@samxbr
Copy link
Contributor Author

samxbr commented Jan 17, 2025

LGTM pending comments addressed. I think we'll need to make sure that we are logging a deprecation warning when Spark 2.x is used in 8.x. We may also want to discuss bumping the default scala supported version to 2.13 instead of leaving it on 2.12 considering how long these major releases live for, but that can be a follow up after more discussion.

I added deprecation warning in #2305 and backported to 8.x, do you think we want to add more?

@samxbr samxbr merged commit e347827 into elastic:main Jan 17, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment