flink报错Could not acquire the minimum required resources.解决方案

有时候在flinksql中执行select会报错如下:

[ERROR] Could not execute SQL statement. Reason:
org.apache.flink.runtime.jobmanager.scheduler.NoResourceAvailableException: 
Could not acquire the minimum required resources.

报错含义是:不能提供job运行需要的最小资源

解决方法是修改配置文件 flink-conf.yaml,重新设置任务槽的数量

taskmanager.numberOfTaskSlots: 50

 

posted @ 2022-11-05 21:20  雷雨客  阅读(8118)  评论(1)    收藏  举报