Flink Sql运行的时候报错了,提示:Could not acquire the minimum required resources

提问者:帅平 问题分类:大数据
运行flink sql的时候报错了,提示信息如下:
[ERROR] Could not execute SQL statement. Reason:
org.apache.flink.runtime.jobmanager.scheduler.NoResourceAvailableException: Could not acquire the minimum required resources

请问这是怎么回事
1 个回答
白鸥掠海
白鸥掠海
这是因为flink集群环境使用的taskmanager.numberOfTaskSlots的值太小了,没有足够的job运行资源,这里的值默认是1,修改大一点,例如50即可,然后重启集群。
taskmanager.numberOfTaskSlots: 50

这个值在${Flink_Home}/conf/flink-conf.yml文件中,修改后需要重启下集群。
发布于:9个月前 (08-21) IP属地:四川省
我来回答