任务管理器无法连接到作业管理器 [找不到任何不是环回或链路本地的 IPv4 地址.使用本地主机地址



我们之前在 Flink 机器上使用 RHEL。我目前正在努力将它们转移到 Ubuntu。当我启动任务管理器时,它无法连接到作业管理器,并显示以下消息 -

2020-01-16 10:54:42,777 INFO  org.apache.flink.runtime.util.LeaderRetrievalUtils            - Trying to select the network interface and address to use by connecting to the leading JobManager.
2020-01-16 10:54:42,778 INFO  org.apache.flink.runtime.util.LeaderRetrievalUtils            - TaskManager will try to connect for 10000 milliseconds before falling back to heuristics
2020-01-16 10:54:52,780 WARN  org.apache.flink.runtime.net.ConnectionUtils                  - Could not find any IPv4 address that is not loopback or link-local. Using localhost address.

机器上的网络接口如下所示 -

ens5: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 9001
inet 10.16.75.30  netmask 255.255.255.128  broadcast 10.16.75.127
ether 02:f1:8b:34:75:51  txqueuelen 1000  (Ethernet)
RX packets 69370  bytes 80369110 (80.3 MB)
RX errors 0  dropped 0  overruns 0  frame 0
TX packets 28787  bytes 2898540 (2.8 MB)
TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
inet 127.0.0.1  netmask 255.0.0.0
loop  txqueuelen 1000  (Local Loopback)
RX packets 9562  bytes 1596138 (1.5 MB)
RX errors 0  dropped 0  overruns 0  frame 0
TX packets 9562  bytes 1596138 (1.5 MB)
TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

注意:在 RHEL 上,主网络接口为 eth0。这可能是问题所在吗?

这是完整的任务管理器日志 - https://paste.ubuntu.com/p/vgh96FHzRq/

问题出在参数high-availability.cluster-id上。任务管理器和作业管理器是不同的。更新它解决了这个问题。

最新更新