去当前节点查看Log 日志:

Java HotSpot™ 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000c6600000, 966787072, 0) failed; error=‘Cannot allocate memory’ (errno=12)
There is insufficient memory for the Java Runtime Environment to continue.
Native memory allocation (mmap) failed to map 966787072 bytes for committing reserved memory.

原因:是因为运行可用 900多M 的内存,而机器配置TaskManagers堆内存是1G,剩余可用的只有几十兆,

所以内存不足导致无法启动

解决办法:

需要修改conf/flink-conf.yml,默认job.manager.heap.mb: 1024,taskmanager.heap.mb: 1024,将他们均改为512。

#The heap size for the JobManager JVM
jobmanager.heap.mb: 512m
#The heap size for the TaskManager JVM
taskmanager.heap.mb: 512m

Logo

北京人形旗下天工造物具身智能开源社区,聚焦具身天工与慧思开物两大平台

更多推荐