Skip to content

[fix](shade) relocate fastutil to avoid conflict with Hive/Hadoop bundled version#61

Open
morningman wants to merge 1 commit into
apache:masterfrom
morningman:shade-fast-util
Open

[fix](shade) relocate fastutil to avoid conflict with Hive/Hadoop bundled version#61
morningman wants to merge 1 commit into
apache:masterfrom
morningman:shade-fast-util

Conversation

@morningman

Copy link
Copy Markdown
Contributor

Summary

Hive/Hadoop transitively bundle an ancient, unrelocated fastutil (6.5.x). On Doris FE/BE classpaths it shadows the modern it.unimi.dsi:fastutil(-core), so the old Long2ObjectOpenHashMap wins and throws NoSuchMethodError on computeIfAbsent(long, Long2ObjectFunction).

This PR relocates it.unimi.dsi.fastutil -> shade.doris.hive.it.unimi.dsi.fastutil in the hive-catalog-shade shade config so the shaded jar can no longer leak fastutil onto the Doris classpath.

Also bumps the version 3.1.1-SNAPSHOT -> 3.1.2-SNAPSHOT.

Test Plan

  • CI builds the shaded hive-catalog-shade jar
  • Verify it.unimi.dsi.fastutil classes in the shaded jar are relocated under shade.doris.hive.
  • Confirm the NoSuchMethodError no longer occurs on a Doris FE/BE using a Hive catalog

🤖 Generated with Claude Code

…dled version

Hive/Hadoop transitively bundle an ancient, unrelocated fastutil (6.5.x).
On Doris FE/BE classpaths it shadows the modern it.unimi.dsi:fastutil(-core),
so the old Long2ObjectOpenHashMap wins and throws NoSuchMethodError on
computeIfAbsent(long, Long2ObjectFunction).

Relocate it.unimi.dsi.fastutil to shade.doris.hive.it.unimi.dsi.fastutil so
the shaded hive-catalog jar can no longer leak it onto the Doris classpath.

Also bump version 3.1.1-SNAPSHOT -> 3.1.2-SNAPSHOT.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant