假设
.map(new RichMapFunction(){
…})
RichMapFunction首先会在client实例化一次.
然后flink会将map对象序列化分发出去.
ClosureCleaner 检查函数闭包可序列化
https://flink.apache.org/visualizer/
org.apache.flink.runtime.taskexecutor.TaskExecutor#submitTask
的时候创造了 Task
假设
.map(new RichMapFunction(){
…})
RichMapFunction首先会在client实例化一次.
然后flink会将map对象序列化分发出去.
ClosureCleaner 检查函数闭包可序列化
https://flink.apache.org/visualizer/
org.apache.flink.runtime.taskexecutor.TaskExecutor#submitTask
的时候创造了 Task