[HUDI-1453] Fix NPE using HoodieFlinkStreamer to etl data from kafka to hudi (#2474)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user