标题: 基于flink,kafka和vue的大数据股票看板 [打印本页] 作者: 渣渣兔 时间: 2025-1-13 21:29 标题: 基于flink,kafka和vue的大数据股票看板 在向flink的网页中提交一个任务,点击Show Plan出现如下错误:
进入linux查看日记信息:
cat flink-fei-standalonesession-0-hadoop102.log.1
2022-03-27 01:00:56,287 WARN akka.remote.ReliableDeliverySupervisor [] - Association with remote system [akka.tcp://flink@192.168.10.103:38496] has failed, address is now gated for [50] ms. Reason: [Association failed with [akka.tcp://flink@192.168.10.103:38496]] Caused by: [java.net.ConnectException: 拒绝毗连: /192.168.10.103:38496]
2022-03-27 01:00:57,803 WARN akka.remote.ReliableDeliverySupervisor [] - Association with remote system [akka.tcp://flink@192.168.10.104:43792] has failed, address is now gated for [50] ms. Reason: [Disassociated]
2022-03-27 01:00:57,804 WARN akka.remote.ReliableDeliverySupervisor [] - Association with remote system [akka.tcp://flink-metrics@192.168.10.104:43949] has failed, address is now gated for [50] ms. Reason: [Disassociated]
2022-03-27 01:00:58,754 INFO org.apache.flink.runtime.entrypoint.ClusterEntrypoint [] - RECEIVED SIGNAL 15: SIGTERM. Shutting down as requested.
2022-03-27 01:00:58,769 INFO org.apache.flink.runtime.entrypoint.ClusterEntrypoint [] - Shutting StandaloneSessionClusterEntrypoint down with application status UNKNOWN. Diagnostics Cluster entrypoint has been closed externally..
2022-03-27 01:00:58,778 INFO org.apache.flink.runtime.dispatcher.DispatcherRestEndpoint [] - Shutting down rest endpoint.
2022-03-27 01:00:58,780 INFO org.apache.flink.runtime.blob.BlobServer [] - Stopped BLOB server at 0.0.0.0:45143
2022-03-27 01:00:59,096 INFO akka.remote.RemoteActorRefProvider$RemotingTerminator [] - Shutting down remote daemon.
2022-03-27 01:00:59,096 INFO akka.remote.RemoteActorRefProvider$RemotingTerminator [] - Remote daemon shut down; proceeding with flushing remote transports.
2022-03-27 01:00:59,097 INFO akka.remote.RemoteActorRefProvider$RemotingTerminator [] - Shutting down remote daemon.
2022-03-27 01:00:59,115 INFO akka.remote.RemoteActorRefProvider$RemotingTerminator [] - Remote daemon shut down; proceeding with flushing remote transports.
2022-03-27 01:00:59,144 INFO akka.remote.RemoteActorRefProvider$RemotingTerminator [] - Remoting shut down.
2022-03-27 01:00:59,152 INFO akka.remote.RemoteActorRefProvider$RemotingTerminator [] - Remoting shut down.
通过观察是拒绝毗连,回到代码中看到原来着实监听一个端口输入的数据造成的错误
//从参数中提取主机名和端标语
ParameterTool parameterTool = ParameterTool.fromArgs(args);
String hostName = parameterTool.get("host");
Integer port = parameterTool.getInt("port");