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
[FLINK-10984]Remove flink-shaded-hadoop from flink #8225
Conversation
Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community Review Progress
Please see the Pull Request Review Guide for a full explanation of the review process. The Bot is tracking the review progress through labels. Labels are applied according to the order of the review items. For consensus, approval by a Flink committer of PMC member is required Bot commandsThe @flinkbot bot supports the following commands:
|
The CI will turn green after |
Thanks for your Review @zentol! I have had updated the PR accordingly. And about download the Best, |
@@ -53,7 +53,6 @@ under the License. | |||
<!-- Dummy module to force execution of the Maven Shade plugin (see Shade plugin below) --> | |||
<module>tools/force-shading</module> | |||
<module>flink-annotations</module> | |||
<module>flink-shaded-hadoop</module> |
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.
flink-shaded-yarn-tests
must be added to this list
<fileMode>0644</fileMode> | ||
</file> | ||
</files> | ||
<useTransitiveDependencies>true</useTransitiveDependencies> |
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.
this is the default and can be omitted
</file> | ||
</files> | ||
<useTransitiveDependencies>true</useTransitiveDependencies> | ||
<scope>provided</scope> |
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.
we could add <outputFileNameMapping>${artifact.artifactId}-${artifact.baseVersion}.${artifact.extension}</outputFileNameMapping>
, so that (for SNAPSHOT builds) the jar is always called flink-shaded-hadoop2-uber-2.4.1-1.9-SNAPSHOT.jar
, and not flink-shaded-hadoop2-uber-2.4.1-1.9-629462874621478328407-23.jar
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.
I think If we add the dependency for flink-shaded-hadoop-2-uber
with <version>${hadoop.version}-${flink.shaded.version}</version>
. we never using the SANAPSHOT JRA. e.g.: flink-shaded-hadoop-2-uber-2.4.1-7.0.jar
Is there anything I misunderstand?
The flink-shaded 7.0 already released, I'll rebase the code and let the CI passed. |
84dcc95
to
e74f12c
Compare
pom.xml
Outdated
@@ -121,7 +121,7 @@ under the License. | |||
<chill.version>0.7.6</chill.version> | |||
<zookeeper.version>3.4.10</zookeeper.version> | |||
<curator.version>2.12.0</curator.version> | |||
<jackson.version>2.7.9</jackson.version> | |||
<jackson.version>2.9.8</jackson.version> |
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.
we're mixing things here. Let's open one PR that bumps the flink-shaded version and related dependencies, and migrate to hadoop separately.
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.
Agree, So, we can merge this PR first, right? #8605
could you rebase the PR? I merged the flink-shaded version bump made in #8605. |
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.
There's still this weird pyflink-zip file in the PR.
@@ -146,42 +172,42 @@ under the License. | |||
<relocations> | |||
<relocation> | |||
<pattern>com.google</pattern> | |||
<shadedPattern>org.apache.flink.hadoop.shaded.com.google</shadedPattern> | |||
<shadedPattern>org.apache.flink.hadoop2.shaded.com.google</shadedPattern> |
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.
I don't think we have to modify these.
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.
Without this chanage, the test of YARNHighAvailabilityITCase
cannot get success.
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.
I'm currently looking into why that is the case. I'd very much prefer if this module would be independent of whatever hadoop version is in flink-dist.
…-hadoop from flink.
2333b34
to
c5305a5
Compare
Thanks for the Review @zentol |
I appreciate if you can have another look :) @zentol |
Hi, @zentol Is there are any other comments from you? :) |
What is the purpose of the change
To allow reasonable dependency management we should move
flink-shaded-hadoop
toflink-shaded
, then Removeflink-shaded-hadoop
from flink.Brief change log
flink-shaded-hadoop
from flink.flink-shaded-hadoop/flink-shaded-hadoop2
from flink.flink-shaded-yran-test
fromflink-shaded-hadoop
.flink-dist
, i.e. remove the logic abouthadoop
.flink-shaded-hadoop
.Verifying this change
This change is already covered by existing tests, such as (please describe tests).
Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: (no)Documentation