Skip to content

HDDS-12462. Use exclude rules for defining shaded filesystem jar contents #8008

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

Merged
merged 12 commits into from
Mar 21, 2025
Prev Previous commit
Next Next commit
Fix test
  • Loading branch information
xichen01 committed Mar 7, 2025
commit 1e45f38c14e9bc65cfbfdda49f16dc791ed2b7ea
5 changes: 5 additions & 0 deletions hadoop-ozone/ozonefs-shaded/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@
<exclude>org.apache.hadoop.**</exclude>
<exclude>org.apache.log4j.**</exclude>
<exclude>org.apache.ozone.**</exclude>
<exclude>org.apache.ratis.**</exclude>
<!-- These packages are the ones that are not shaded in the hadoop release package.
To prevent conflicts, we do not include these packages in the ozone client release package.
Ozone will use hadoop / JVM to provide these dependencies. -->
Expand All @@ -169,6 +170,10 @@
<exclude>org.wildfly.**</exclude>
</excludes>
</relocation>
<relocation>
<pattern>org.apache.ratis</pattern>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

if we shade ratis on the <pattern>org</pattern> , will cause exception for the ratis file in the META-INF

image

put ratis shade in a Independent unit can fix this issue

The normal ratis file
image

<shadedPattern>${shaded.prefix}.org.apache.ratis</shadedPattern>
</relocation>
<relocation>
<pattern>com</pattern>
<shadedPattern>${shaded.prefix}.com</shadedPattern>
Expand Down
Loading