ozone
ozone copied to clipboard
HDDS-7305. Fix Hadoop imports
What changes were proposed in this pull request?
- Replace one import from Hadoop's shaded Guava.
- Add direct dependencies for various Apache Commons libs instead of relying on getting them transitively via Hadoop.
Different Hadoop versions may not depend on all these libraries (or shade different Guava version), so using transitive dependency explicitly (via import) risks breaking with some version of Hadoop.
https://issues.apache.org/jira/browse/HDDS-7305
How was this patch tested?
Regular CI: https://github.com/adoroszlai/hadoop-ozone/actions/runs/3228775529
How did you identify the pom file changes? I understand the import change, but not sure how the pom file updates were speced out.
How did you identify the pom file changes?
Trial and error. Added the exclude, then resolved build failures.
Thanks @captainzmc for reviewing and merging this.
Thanks @adoroszlai, I will cherry-pick this to release branch.