1
0

Revert "[HUDI-2799] Fix the classloader of flink write task (#4042)" (#4069)

This reverts commit 8281cbf762.
This commit is contained in:
Danny Chan
2021-11-24 12:01:18 +08:00
committed by GitHub
parent 0cf2f103e0
commit 323be33f18
3 changed files with 0 additions and 6 deletions

View File

@@ -111,8 +111,6 @@ public class BulkInsertWriteFunction<I>
@Override
public void open(Configuration parameters) throws IOException {
// always use the user classloader
Thread.currentThread().setContextClassLoader(getRuntimeContext().getUserCodeClassLoader());
this.taskID = getRuntimeContext().getIndexOfThisSubtask();
this.metaClient = StreamerUtil.createMetaClient(this.config);
this.writeClient = StreamerUtil.createWriteClient(this.config, getRuntimeContext());

View File

@@ -125,8 +125,6 @@ public abstract class AbstractStreamWriteFunction<I>
@Override
public void initializeState(FunctionInitializationContext context) throws Exception {
// always use the user classloader
Thread.currentThread().setContextClassLoader(getRuntimeContext().getUserCodeClassLoader());
this.taskID = getRuntimeContext().getIndexOfThisSubtask();
this.metaClient = StreamerUtil.createMetaClient(this.config);
this.writeClient = StreamerUtil.createWriteClient(this.config, getRuntimeContext());

View File

@@ -75,8 +75,6 @@ public class CompactFunction extends ProcessFunction<CompactionPlanEvent, Compac
@Override
public void open(Configuration parameters) throws Exception {
// always use the user classloader
Thread.currentThread().setContextClassLoader(getRuntimeContext().getUserCodeClassLoader());
this.taskID = getRuntimeContext().getIndexOfThisSubtask();
this.writeClient = StreamerUtil.createWriteClient(conf, getRuntimeContext());
if (this.asyncCompaction) {