-
Notifications
You must be signed in to change notification settings - Fork 2.5k
[minor]The Kryo of Hudi conflicts with the Kryo of Flink #6522
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
| Kryo.DefaultInstantiatorStrategy instantiatorStrategy = new Kryo.DefaultInstantiatorStrategy(); | ||
| instantiatorStrategy.setFallbackInstantiatorStrategy(new StdInstantiatorStrategy()); | ||
| kryo.setInstantiatorStrategy(instantiatorStrategy); | ||
| // Handle cases where we may have an odd classloader setup like with libjars |
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.
We already add some shade pattern for the kryo in hudi-flink-bundle jar in #4251, does that solve your conflicts here ?
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.
yes,now we use hudi-flink,and the hudi only needs to modify the code and does not need to use the bundle jar
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.
yes,now we use hudi-flink,and the hudi only needs to modify the code and does not need to use the bundle jar
@cuibo01 can you clarify the situation please? do you mean hudi flink bundle jar will have kryo lib conflicts? we have shaded kryo for every module
Line 450 in b2a84ee
| <shadedPattern>org.apache.hudi.com.esotericsoftware.kryo.</shadedPattern> |
can you point out in your environment which dependency brings in kryo that caused conflicts?
|
@cuibo01 @danny0405 do you still plan to land this? |
Let's not land this until we clarify what exactly caused the conflict. #6522 (comment) |
|
@danny0405 do you know if this is still an issue on master and in the recent Hudi releases? |
|
I didn't see any reports about it in recent releases. |
Got it. Closing this stale PR now. |

Change Logs
Describe context and summary for this change. Highlight if any code was copied.
Impact
Describe any public API or user-facing feature change or any performance impact.
Risk level: none | low | medium | high
Choose one. If medium or high, explain what verification was done to mitigate the risks.
Contributor's checklist