Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ public Kryo newKryo() {
// ensure that kryo doesn't fail if classes are not registered with kryo.
kryo.setRegistrationRequired(false);
// This would be used for object initialization if nothing else works out.
kryo.setInstantiatorStrategy(new Kryo.DefaultInstantiatorStrategy(new StdInstantiatorStrategy()));
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
Copy link
Contributor

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 ?

Copy link
Contributor Author

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

Copy link
Member

@xushiyan xushiyan Nov 4, 2022

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

hudi/pom.xml

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?

// for hadoop
kryo.setClassLoader(Thread.currentThread().getContextClassLoader());
Expand Down