问题描述:
启动集群之后,taskmanager无法连接到/resourcemanager,报错为:
2019-08-06 13:38:54,733 INFO org.apache.flink.runtime.net.ConnectionUtils - Failed to connect from address 'flink001/132.232.80.134': Cannot assign requested address
2019-08-06 13:38:54,734 INFO org.apache.flink.runtime.net.ConnectionUtils - Failed to connect from address '/127.0.0.1': Connection refused
2019-08-06 13:38:54,734 INFO org.apache.flink.runtime.net.ConnectionUtils - Failed to connect from address '/172.27.16.6': Connection refused
2019-08-06 13:38:54,734 INFO org.apache.flink.runtime.net.ConnectionUtils - Failed to connect from address '/127.0.0.1': Connection refused
2019-08-06 13:38:54,734 INFO org.apache.flink.runtime.net.ConnectionUtils - Failed to connect from address '/172.27.16.6': Connection refused
2019-08-06 13:38:54,735 INFO org.apache.flink.runtime.net.ConnectionUtils - Failed to connect from address '/127.0.0.1': Connection refused
2019-08-06 13:38:55,145 INFO org.apache.flink.runtime.net.ConnectionUtils - Trying to connect to address localhost/127.0.0.1:6123
2019-08-06 13:38:55,145 INFO org.apache.flink.runtime.net.ConnectionUtils - Failed to connect from address 'flink001/132.232.80.134': Cannot assign requested address
2019-08-06 13:38:55,146 INFO org.apache.flink.runtime.net.ConnectionUtils - Failed to connect from address 'flink001/132.232.80.134': Cannot assign requested address
.............................................
2019-08-06 13:39:08,888 INFO org.apache.flink.runtime.taskexecutor.TaskExecutor - Could not resolve ResourceManager address akka.tcp://flink@localhost:6123/user/resourcemanager, retrying in 10000 ms: Ask timed out on [ActorS
election[Anchor(akka.tcp://flink@localhost:6123/), Path(/user/resourcemanager)]] after [10000 ms]. Sender[null] sent message of type "akka.actor.Identify"..
taskmanager的完整日志为:
2019-08-06 13:38:51,547 INFO org.apache.flink.runtime.taskexecutor.TaskManagerRunner - --------------------------------------------------------------------------------
2019-08-06 13:38:51,548 INFO org.apache.flink.runtime.taskexecutor.TaskManagerRunner - Starting TaskManager (Version: 1.7.2, Rev:ceba8af, Date:11.02.2019 @ 14:17:09 UTC)
2019-08-06 13:38:51,548 INFO org.apache.flink.runtime.taskexecutor.TaskManagerRunner - OS current user: root
2019-08-06 13:38:52,801 WARN org.apache.hadoop.util.NativeCodeLoader - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
2019-08-06 13:38:53,127 INFO