情况:观察到某job半个多小时之前重启,于是查询jibmanager日志,只能找到如下问题。所以联想到端口的分配问题、错误占用会导致job重启。
日志:
2022-06-22 10:35:30,951 | INFO | [main] | Unable to allocate on port 32326, due to error: Address already in use (Bind failed) | org.apache.flink.util.NetUtils (NetUtils.java:386) 2022-06-22 10:35:30,951 | INFO | [main] | Unable to allocate on port 32327, due to error: Address already in use (Bind failed) | org.apache.flink.util.NetUtils (NetUtils.java:386) 2022-06-22 10:35:30,951 | INFO | [main] | Unable to allocate on port 32328, due to error: Address already in use (Bind failed) | org.apache.flink.util.NetUtils (NetUtils.java:386) 2022-06-22 10:35:30,952 | INFO | [main] | Unable to allocate on port 32329, due to error: Address already in use (Bind failed) | org.apache.flink.util.NetUtils (NetUtils.java:386) 2022-06-22 10:35:30,952 | INFO | [main] | Unable to allocate on port 32330, due to error: Address already in use (Bind failed) | org.apache.flink.util.NetUtils (NetUtils.java:386) 2022-06-22 10:35:30,952 | INFO | [main] | Unable to allocate on port 32331, due to error: Address already in use (Bind failed) | org.apache.flink.util.NetUtils (NetUtils.java:386) 2022-06-22 10:35:30,952 | INFO | [main] | Unable to allocate on port 32332, due to error: Address already in use (Bind failed) | org.apache.flink.util.NetUtils (NetUtils.java:386)