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
请问这是怎么回事
发布于:2年前 (2023-08-21) IP属地:四川省
1 个回答
这是因为flink集群环境使用的taskmanager.numberOfTaskSlots的值太小了,没有足够的job运行资源,这里的值默认是1,修改大一点,例如50即可,然后重启集群。
这个值在${Flink_Home}/conf/flink-conf.yml文件中,修改后需要重启下集群。
taskmanager.numberOfTaskSlots: 50
这个值在${Flink_Home}/conf/flink-conf.yml文件中,修改后需要重启下集群。
发布于:2年前 (2023-08-21) IP属地:四川省
我来回答
您需要 登录 后回答此问题!