天天看點

解決flink運作過程中報錯Could not allocate enough slots within timeout of 300000 ms to run the job. Please make sure that the cluster has enough resources.

Flink運作過程中報:

org.apache.flink.runtime.jobmanager.scheduler.NoResourceAvailableException: Could not allocate enough slots within timeout of 300000 ms to run the job. Please make sure that the cluster has enough resources.

解決方案:

       調整Flink裡面flink-conf.yaml裡面的新增參數增加可支援的slot數量

taskmanager.network.memory.fraction: 0.1

taskmanager.network.memory.min: 268435456

taskmanager.network.memory.max: 4294967296

繼續閱讀