大数据-玩转数据-Flink -job报错NoResourceAvailableException: Could not acquire the minimum required resources

Flink测试单机模式遇到

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

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

修改了flink conf里面的flink-conf.yaml

jobmanager.memory.process.size: 2600m
# 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: 2728m

# 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

你可能感兴趣的:(Flink-bug集锦,大数据,flink)