Skip to content

Conversation

@yunfengzhou-hub
Copy link
Contributor

@yunfengzhou-hub yunfengzhou-hub commented Jan 13, 2026

Purpose

In order to fix CVE vulnerabilites like CVE-2025-48924, this PR adds a profile and CI pipelines to verify paimon-flink's compatibility with Hadoop 3.x, so that if users want to use paimon-flink in a Hadoop 3.x project, they can compile the project with -Phadoop3 on their own and get the needed dependencies.

Given that Paimon still promises compatibility with Hadoop 2.x, Support for Hadoop 3.x is only added as an optional profile, instead of being set as the default dependency.

Currently only Flink 1.x has been verified against the newly introduced profile.

Tests

  • Add new CI workflows to verify the correctness of paimon-flink under the hadoop 3.x profile.

API and Format

This PR does not change API or format.

Documentation

It is documented in Flink quickstart how to build paimon-flink with hadoop 3.x.

@yunfengzhou-hub yunfengzhou-hub marked this pull request as ready for review January 13, 2026 08:58
mvn clean install -DskipTests

# build paimon flink 1.x with hadoop 3.x
mvn clean package -DskipTests -Pflink1,hadoop3
Copy link
Contributor

Choose a reason for hiding this comment

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

Why we need to build with -P hadoop3? What changed?

Copy link
Contributor Author

@yunfengzhou-hub yunfengzhou-hub Jan 14, 2026

Choose a reason for hiding this comment

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

Hadoop 2.x relies on commons-lang, which might be vulnerable to CVE-2025-48924. Some of our Paimon users have asked to provide a paimon-flink version with CVEs like have been fixed.

I'll update this to the description of this PR.

Copy link
Contributor

Choose a reason for hiding this comment

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

Do you mean we will bundle the corresponding dependencies into our JAR file based on the Hadoop version?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, the official Paimon jars will not bundle hadoop 3.x dependencies.

This PR is more like providing a guarantee that if there is another project that relies on paimon-flink and Hadoop 3.x at the same time, this project is not supposed to have Hadoop version compatibility issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants