可以参考 FlinkDeployment
可以参考 FlinkConfiguration
taskManager.resource.memory参数,增加taskManager资源。The exception usually indicates that the JVM heap is too small.
taskManager.resource.memory参数,增加Taskmanager所占的资源。flinkConfiguration 中的 taskmanager.memory.task.heap.size 参考Could not allocate the required slot within slot request timeout
taskmanager.numberOfTaskSlots参数,增加slot数量。该报错通常表示配置的网络内存大小不够大,可以尝试通过调整flinkConfiguration中的配置来增加网络内存: