Skip to content

[SPARK-38925][BUILD] Update guava to 30.1.1-jre #36231

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

Closed
wants to merge 1 commit into from

Conversation

dcoliversun
Copy link
Contributor

What changes were proposed in this pull request?

This PR updates guava to 30.1.1-jre.

Why are the changes needed?

guava 14.0.1 has two risks:

And API in guava 14.0.1 used by apache spark is labeled as Beta, such as BaseEncoding in DriverKubernetesCredentialsFeatureStep. In 30.1.1-jre, these APIs have been removed label Beta.

More information: https://github.com/google/guava/releases/tag/v30.1.1

Does this PR introduce any user-facing change?

No

How was this patch tested?

Pass the GA

@github-actions github-actions bot added the BUILD label Apr 17, 2022
@dcoliversun dcoliversun changed the title [SPARK-38925][BUILD] update guava to 30.1.1-jre [SPARK-38925][BUILD] Update guava to 30.1.1-jre Apr 17, 2022
@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@HyukjinKwon
Copy link
Member

IIRC, the problem was that Hadoop 2 compatibility which doesn't support higher Guava version. it would be great to check if it compiles and the tests pass fine w/ Hadoop 2 profile.

@dcoliversun
Copy link
Contributor Author

@HyukjinKwon OK, I will test compatibility with Hadoop 2.

@dcoliversun
Copy link
Contributor Author

@HyukjinKwon Yes, there is a conflict between hadoop 2 and guava higher version.

Guava is the Google core library for Java that is used by many libraries and frameworks, including Hadoop. A dependency conflict can occur if a job or its dependencies require a version of Guava that is newer than the one used by Hadoop.

Hadoop v3.0 resolved this issue.

@HyukjinKwon
Copy link
Member

Hadoop 2 is dropped in the binary release. Maybe we should try it upgrade it now

@HyukjinKwon
Copy link
Member

cc @dongjoon-hyun FYI.

cc @hvanhovell @zsxwing @grundprinzip @cloud-fan @bozhang2820 @amaliujia FYI

@HyukjinKwon
Copy link
Member

cc @JoshRosen @tgravescs too fyi

@dongjoon-hyun
Copy link
Member

cc @sunchao and @viirya

@sunchao
Copy link
Member

sunchao commented Oct 7, 2022

I think not only Hadoop, the problem also comes from Hive 2.3 dependency. Please see #33989.

In summary, to combat against the issue, we'll need to create shaded Hive in a separate place and be consumed by Spark, similar to how Hadoop handles Guava in hadoop-thirdparty.

dongjoon-hyun pushed a commit that referenced this pull request Sep 12, 2024
### What changes were proposed in this pull request?

This PR upgrades Spark's built-in Guava from 14 to 33.2.1-jre

Currently, Spark uses Guava 14 because the previous built-in Hive 2.3.9 is incompatible with new Guava versions. HIVE-27560 (apache/hive#4542) makes Hive 2.3.10 compatible with Guava 14+ (thanks to LuciferYang)

### Why are the changes needed?

It's a long-standing issue, see prior discussions at #35584, #36231, and #33989

### Does this PR introduce _any_ user-facing change?

Yes, some user-faced error messages changed.

### How was this patch tested?

GA passed.

Closes #42493 from pan3793/guava.

Authored-by: Cheng Pan <chengpan@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
attilapiros pushed a commit to attilapiros/spark that referenced this pull request Oct 4, 2024
### What changes were proposed in this pull request?

This PR upgrades Spark's built-in Guava from 14 to 33.2.1-jre

Currently, Spark uses Guava 14 because the previous built-in Hive 2.3.9 is incompatible with new Guava versions. HIVE-27560 (apache/hive#4542) makes Hive 2.3.10 compatible with Guava 14+ (thanks to LuciferYang)

### Why are the changes needed?

It's a long-standing issue, see prior discussions at apache#35584, apache#36231, and apache#33989

### Does this PR introduce _any_ user-facing change?

Yes, some user-faced error messages changed.

### How was this patch tested?

GA passed.

Closes apache#42493 from pan3793/guava.

Authored-by: Cheng Pan <chengpan@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
himadripal pushed a commit to himadripal/spark that referenced this pull request Oct 19, 2024
### What changes were proposed in this pull request?

This PR upgrades Spark's built-in Guava from 14 to 33.2.1-jre

Currently, Spark uses Guava 14 because the previous built-in Hive 2.3.9 is incompatible with new Guava versions. HIVE-27560 (apache/hive#4542) makes Hive 2.3.10 compatible with Guava 14+ (thanks to LuciferYang)

### Why are the changes needed?

It's a long-standing issue, see prior discussions at apache#35584, apache#36231, and apache#33989

### Does this PR introduce _any_ user-facing change?

Yes, some user-faced error messages changed.

### How was this patch tested?

GA passed.

Closes apache#42493 from pan3793/guava.

Authored-by: Cheng Pan <chengpan@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
prabhjyotsingh pushed a commit to acceldata-io/spark3 that referenced this pull request Feb 8, 2025
This PR upgrades Spark's built-in Guava from 14 to 33.2.1-jre

Currently, Spark uses Guava 14 because the previous built-in Hive 2.3.9 is incompatible with new Guava versions. HIVE-27560 (apache/hive#4542) makes Hive 2.3.10 compatible with Guava 14+ (thanks to LuciferYang)

It's a long-standing issue, see prior discussions at apache#35584, apache#36231, and apache#33989

Yes, some user-faced error messages changed.

GA passed.

Closes apache#42493 from pan3793/guava.

Authored-by: Cheng Pan <chengpan@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 1f24b2d)
prabhjyotsingh pushed a commit to acceldata-io/spark3 that referenced this pull request Feb 8, 2025
This PR upgrades Spark's built-in Guava from 14 to 33.2.1-jre

Currently, Spark uses Guava 14 because the previous built-in Hive 2.3.9 is incompatible with new Guava versions. HIVE-27560 (apache/hive#4542) makes Hive 2.3.10 compatible with Guava 14+ (thanks to LuciferYang)

It's a long-standing issue, see prior discussions at apache#35584, apache#36231, and apache#33989

Yes, some user-faced error messages changed.

GA passed.

Closes apache#42493 from pan3793/guava.

Authored-by: Cheng Pan <chengpan@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 1f24b2d)
prabhjyotsingh pushed a commit to acceldata-io/spark3 that referenced this pull request Feb 8, 2025
This PR upgrades Spark's built-in Guava from 14 to 33.2.1-jre

Currently, Spark uses Guava 14 because the previous built-in Hive 2.3.9 is incompatible with new Guava versions. HIVE-27560 (apache/hive#4542) makes Hive 2.3.10 compatible with Guava 14+ (thanks to LuciferYang)

It's a long-standing issue, see prior discussions at apache#35584, apache#36231, and apache#33989

Yes, some user-faced error messages changed.

GA passed.

Closes apache#42493 from pan3793/guava.

Authored-by: Cheng Pan <chengpan@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 1f24b2d)
prabhjyotsingh pushed a commit to acceldata-io/spark3 that referenced this pull request Feb 8, 2025
This PR upgrades Spark's built-in Guava from 14 to 33.2.1-jre

Currently, Spark uses Guava 14 because the previous built-in Hive 2.3.9 is incompatible with new Guava versions. HIVE-27560 (apache/hive#4542) makes Hive 2.3.10 compatible with Guava 14+ (thanks to LuciferYang)

It's a long-standing issue, see prior discussions at apache#35584, apache#36231, and apache#33989

Yes, some user-faced error messages changed.

GA passed.

Closes apache#42493 from pan3793/guava.

Authored-by: Cheng Pan <chengpan@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 1f24b2d)
(cherry picked from commit e5cc252)
shubhluck pushed a commit to acceldata-io/spark3 that referenced this pull request May 16, 2025
This PR upgrades Spark's built-in Guava from 14 to 33.2.1-jre

Currently, Spark uses Guava 14 because the previous built-in Hive 2.3.9 is incompatible with new Guava versions. HIVE-27560 (apache/hive#4542) makes Hive 2.3.10 compatible with Guava 14+ (thanks to LuciferYang)

It's a long-standing issue, see prior discussions at apache#35584, apache#36231, and apache#33989

Yes, some user-faced error messages changed.

GA passed.

Closes apache#42493 from pan3793/guava.

Authored-by: Cheng Pan <chengpan@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 1f24b2d)
senthh pushed a commit to acceldata-io/spark3 that referenced this pull request May 26, 2025
This PR upgrades Spark's built-in Guava from 14 to 33.2.1-jre

Currently, Spark uses Guava 14 because the previous built-in Hive 2.3.9 is incompatible with new Guava versions. HIVE-27560 (apache/hive#4542) makes Hive 2.3.10 compatible with Guava 14+ (thanks to LuciferYang)

It's a long-standing issue, see prior discussions at apache#35584, apache#36231, and apache#33989

Yes, some user-faced error messages changed.

GA passed.

Closes apache#42493 from pan3793/guava.

Authored-by: Cheng Pan <chengpan@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 1f24b2d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants