当我们设置jobmanager内存的时候,如果设置过小会出现如下问题(红色部分已标出)
提交参数如下
flink run -t yarn-per-job -D yarn.application.queue=test -Djobmanager.memory.process.size=100m -c com.test.Test /data/shan/flink-example-1.0-SNAPSHOT.jar
显示的日志如下
2022-03-28 16:58:32,875 INFO org.apache.flink.yarn.YarnClusterDescriptor [] - No path for the flink jar passed. Using the location of class org.apache.flink.yarn.YarnClusterDescriptor to locate the jar
------------------------------------------------------------
The program finished with the following exception:org.apache.flink.client.program.ProgramInvocationException: The main method caused an error: