Skip to content
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

Merged
merged 1 commit into from Jun 19, 2019

Conversation

sunjincheng121
Copy link
Member

What is the purpose of the change

To allow reasonable dependency management we should move flink-shaded-hadoop to flink-shaded, then Remove flink-shaded-hadoop from flink.

Brief change log

  • Remove flink-shaded-hadoop from flink.
  • Remove flink-shaded-hadoop/flink-shaded-hadoop2 from flink.
  • Move out flink-shaded-yran-test from flink-shaded-hadoop.
  • Modify the scripts in flink-dist, i.e. remove the logic about hadoop.
  • Modify some pom config about 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:

  • Dependencies (does it add or upgrade a dependency): (yes)
  • The public API, i.e., is any changed class annotated with @Public(Evolving): (no)
  • The serializers: (no)
  • The runtime per-record code paths (performance sensitive): (no)
  • Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: (no)
  • The S3 file system connector: (no)

Documentation

  • Does this pull request introduce a new feature? (no)
  • If yes, how is the feature documented? (not documented)

@sunjincheng121 sunjincheng121 changed the title FLINK-10984][Build System, BuildSystem / Shaded FLINK-10984]Remove flink-shaded-hadoop from flink Apr 19, 2019
@flinkbot
Copy link
Collaborator

Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community
to review your pull request. We will use this comment to track the progress of the review.

Review Progress

  • ❓ 1. The [description] looks good.
  • ❓ 2. There is [consensus] that the contribution should go into to Flink.
  • ❓ 3. Needs [attention] from.
  • ❓ 4. The change fits into the overall [architecture].
  • ❓ 5. Overall code [quality] is good.

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 commands
The @flinkbot bot supports the following commands:

  • @flinkbot approve description to approve one or more aspects (aspects: description, consensus, architecture and quality)
  • @flinkbot approve all to approve all aspects
  • @flinkbot approve-until architecture to approve everything until architecture
  • @flinkbot attention @username1 [@username2 ..] to require somebody's attention
  • @flinkbot disapprove architecture to remove an approval you gave earlier

@sunjincheng121
Copy link
Member Author

The CI will turn green after flink-shaded releases the 7.0 version.

flink-connectors/flink-connector-filesystem/pom.xml Outdated Show resolved Hide resolved
flink-dist/pom.xml Outdated Show resolved Hide resolved
flink-dist/pom.xml Show resolved Hide resolved
pom.xml Outdated Show resolved Hide resolved
@zentol zentol self-assigned this Apr 24, 2019
@sunjincheng121
Copy link
Member Author

Thanks for your Review @zentol!

I have had updated the PR accordingly. And about download the uber JRA, I think your right! we should keep include-hadoop available. and we can download the jar by changing the hadoop.xml. i.e.: files ->dependencySet. and Rework flink-dist assemblies changes can in a new PR. What do you think?

Best,
Jincheng

@@ -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>
Copy link
Contributor

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>
Copy link
Contributor

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>
Copy link
Contributor

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

Copy link
Member Author

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.jarIs there anything I misunderstand?

@sunjincheng121
Copy link
Member Author

The flink-shaded 7.0 already released, I'll rebase the code and let the CI passed.

@sunjincheng121 sunjincheng121 changed the title FLINK-10984]Remove flink-shaded-hadoop from flink [FLINK-10984]Remove flink-shaded-hadoop from flink May 31, 2019
@sunjincheng121 sunjincheng121 force-pushed the FLINK-10984-Part3 branch 2 times, most recently from 84dcc95 to e74f12c Compare May 31, 2019 09:29
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>
Copy link
Contributor

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.

Copy link
Member Author

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

@zentol
Copy link
Contributor

zentol commented Jun 7, 2019

could you rebase the PR? I merged the flink-shaded version bump made in #8605.

Copy link
Contributor

@zentol zentol left a 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>
Copy link
Contributor

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.

Copy link
Member Author

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.

Copy link
Contributor

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.

@sunjincheng121
Copy link
Member Author

Thanks for the Review @zentol
I have rebased the code and wait for CI change green.

@sunjincheng121
Copy link
Member Author

I appreciate if you can have another look :) @zentol

@sunjincheng121
Copy link
Member Author

Hi, @zentol Is there are any other comments from you? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants