Help Center/ MapReduce Service/ Component Operation Guide (LTS)/ Using Flink/ Common Issues About Flink/ What Should I Do If the Insufficient Port Range Error Is Reported When Submitting a Flink Job?
Updated on 2025-08-15 GMT+08:00

What Should I Do If the Insufficient Port Range Error Is Reported When Submitting a Flink Job?

Symptom

When I submit a Flink job, no sufficient ports can be allocated to the actor system and job start fails. The error message "Could not start actor system on any port in port range 32326-32390" is displayed.

Solution

An MRS cluster can run multiple services. To avoid port conflicts, each service must be assigned a fixed port range. The Flink port range is [32326-32390].

Too many slots of a Flink job TaskManager cause insufficient ports. To avoid this problem, set taskmanager.data.port to 0 in the Client installation path/Flink/flink/conf/flink-conf.yaml file to cancel the port allocation restriction.

Exercise caution when performing this operation. Cancelling the Flink port allocation restriction may cause port conflicts and cluster exceptions.