1
0

[HUDI-2985] Shade jackson for hudi flink bundle jar (#4284)

This commit is contained in:
Danny Chan
2021-12-11 14:40:57 +08:00
committed by GitHub
parent 9bdcee00c0
commit 2dcb3f0062
2 changed files with 7 additions and 0 deletions

View File

@@ -377,6 +377,9 @@ public class StreamWriteOperatorCoordinator
if (allEventsReceived()) {
// start to commit the instant.
commitInstant(this.instant);
// The executor thread inherits the classloader of the #handleEventFromOperator
// caller, which is a AppClassLoader.
Thread.currentThread().setContextClassLoader(getClass().getClassLoader());
// sync Hive if is enabled in batch mode.
syncHiveIfEnabled();
}

View File

@@ -227,6 +227,10 @@
<pattern>com.esotericsoftware.kryo.</pattern>
<shadedPattern>${flink.bundle.shade.prefix}com.esotericsoftware.kryo.</shadedPattern>
</relocation>
<relocation>
<pattern>com.fasterxml.jackson.</pattern>
<shadedPattern>${flink.bundle.shade.prefix}com.fasterxml.jackson.</shadedPattern>
</relocation>
</relocations>
<filters>
<filter>