-
Notifications
You must be signed in to change notification settings - Fork 13.8k
[FLINK-29007][e2e] Fix UsingRemoteJarITCase failed with NPE in hadoop3 #20613
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
Conversation
|
Please explain the change, and document the reasoning with a comment. |
|
@zentol Thanks for review, I've updated it. |
| <exclusions> | ||
| <exclusion> | ||
| <groupId>com.fasterxml.jackson.core</groupId> | ||
| <artifactId>jackson-annotations</artifactId> |
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.
Why is this being excluded?
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 print mvn dependency in hadoop2.8.5, found jackson-annotations is not included in hadoop-hdfs-client, but it existed in hadoop3, so I exclude it to keep consistency.
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 not sure if that's a good idea. At the end of the day hadoop 3 has a different dependency tree, and trying to keep the close may just cause problems in the future when something suddenly stops working.
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.
OK, I remove it.
What is the purpose of the change
Fix UsingRemoteJarITCase failed in hadoop3, test passed in local machine.
This change aim to address the ClassNotFoundException of
HdfsConfigurationwhen run test with hadoop3, the reason is that hadoop-hdfs module doesn't include transitive dependency of hadoop-hdfs-client, hadoop-hdfs-client is not in classpath, so we need to introduce this dependency explicitly in maven.Verifying this change
This change is already covered by existing tests in
UsingRemoteJarITCase.