taskmanager无法连接到jobmanager[找不到任何不是环回或本地链接的ipv4地址]使用本地主机地址]

f87krz0w  于 2021-06-24  发布在  Flink
关注(0)|答案(1)|浏览(454)

我们以前在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/

4xy9mtcn

4xy9mtcn1#

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

相关问题