Flink:job报错NoResourceAvailableException: Could not acquire the minimum required resources

flink报错NoResourceAvailableException: Could not acquire the minimum required resources

    没有可以使用的资源。。那么究竟什么资源没有可以被使用了?一般都是说内存。所以我们给他调整内存的参数。
以下是flink配置参数可以使用的一些配置选项

# The total process memory size for the JobManager.
#
# Note this accounts for all memory usage within the JobManager process, including JVM metaspace and other overhead.

jobmanager.memory.process.size: 6600m


# The total process memory size for the TaskManager.
#
# Note this accounts for all memory usage within the TaskManager process, including JVM metaspace and other overhead.

taskmanager.memory.process.size: 5728m

# To exclude JVM metaspace and overhead, please, use total Flink memory size instead of 'taskmanager.memory.process.size'.
# It is not recommended to set both 'taskmanager.memory.process.size' and Flink memory.
#
 taskmanager.memory.flink.size: 2280m

# The number of task slots that each TaskManager offers. Each slot runs one parallel pipeline.

taskmanager.numberOfTaskSlots: 4

# The parallelism used for programs that did not specify and other parallelism.

parallelism.default: 1


   因为我们的内存是16G的服务器,所以我现给调整为以下参数看看,试一试,看是否报错。

jobmanager.memory.process.size: 2600m

taskmanager.memory.process.size: 2728m

 

taskmanager.memory.flink.size: 2280m

配置好了以后重新启动后到webUI看一下大小,确实变大了,观察观察

       特别需要注意的地方,我使用的1.13版本在windows系统上执行有些问题,最后放到Linux中成功运行。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

angelasp

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值