1
0

[HUDI-1453] Fix NPE using HoodieFlinkStreamer to etl data from kafka to hudi (#2474)

This commit is contained in:
wangxianghu
2021-01-23 10:27:40 +08:00
committed by GitHub
parent d3ea0f957e
commit e302c6bc12

View File

@@ -109,7 +109,7 @@ public class InstantGenerateOperator extends AbstractStreamOperator<HoodieRecord
fs = FSUtils.getFs(cfg.targetBasePath, serializableHadoopConf.get());
if (isMain) {
TaskContextSupplier taskContextSupplier = new FlinkTaskContextSupplier(runtimeContext);
TaskContextSupplier taskContextSupplier = new FlinkTaskContextSupplier(null);
// writeClient
writeClient = new HoodieFlinkWriteClient(new HoodieFlinkEngineContext(taskContextSupplier), StreamerUtil.getHoodieClientConfig(cfg), true);