Hi, flink 1.12.1 on native k8s application模式,jobManager频繁重启可能是什么原因导致的,报错日志如下:
"2021-08-26 12:41:12,891 DEBUG org.apache.flink.runtime.io.network.partition.ResourceManagerPartitionTrackerImpl [] - Processing cluster partition report from task executor tb-bipo-upload-file-info-binlog2mongo-taskmanager-50-1: PartitionReport{entries=[]}."
"2021-08-26 12:41:13,082 DEBUG io.fabric8.kubernetes.client.dsl.internal.WatchConnectionManager [] - Connecting websocket ... io.fabric8.kubernetes.client.dsl.internal.WatchConnectionManager@7799909e"
"2021-08-26 12:41:13,085 DEBUG io.fabric8.kubernetes.client.dsl.internal.WatchConnectionManager [] - WebSocket successfully opened"
"2021-08-26 12:41:13,093 ERROR org.apache.flink.runtime.jobmaster.JobManagerRunnerImpl [] - Leader Election Service encountered a fatal error."
"org.apache.flink.runtime.leaderelection.LeaderElectionException: Error while watching the ConfigMap tb-bipo-upload-file-info-binlog2mongo-ef82295e3efde28d7b424565606753e0-jobmanager-leader"
"at org.apache.flink.kubernetes.highavailability.KubernetesLeaderElectionDriver$ConfigMapCallbackHandlerImpl.handleFatalError(KubernetesLeaderElectionDriver.java:251) [flink-dist_2.12-1.12.1.jar:1.12.1]"
"at org.apache.flink.kubernetes.kubeclient.resources.AbstractKubernetesWatcher.onClose(AbstractKubernetesWatcher.java:48) [flink-dist_2.12-1.12.1.jar:1.12.1]"
"at io.fabric8.kubernetes.client.utils.WatcherToggle.onClose(WatcherToggle.java:56) [flink-dist_2.12-1.12.1.jar:1.12.1]"
"at io.fabric8.kubernetes.client.dsl.internal.WatchConnectionManager.closeEvent(WatchConnectionManager.java:367) [flink-dist_2.12-1.12.1.jar:1.12.1]"
"at io.fabric8.kubernetes.client.dsl.internal.WatchConnectionManager.access$700(WatchConnectionManager.java:50) [flink-dist_2.12-1.12.1.jar:1.12.1]"
"at io.fabric8.kubernetes.client.dsl.internal.WatchConnectionManager$1.onMessage(WatchConnectionManager.java:259) [flink-dist_2.12-1.12.1.jar:1.12.1]"
"at org.apache.flink.kubernetes.shaded.okhttp3.internal.ws.RealWebSocket.onReadMessage(RealWebSocket.java:323) [flink-dist_2.12-1.12.1.jar:1.12.1]"
"at org.apache.flink.kubernetes.shaded.okhttp3.internal.ws.WebSocketReader.readMessageFrame(WebSocketReader.java:219) [flink-dist_2.12-1.12.1.jar:1.12.1]"
"at org.apache.flink.kubernetes.shaded.okhttp3.internal.ws.WebSocketReader.processNextFrame(WebSocketReader.java:105) [flink-dist_2.12-1.12.1.jar:1.12.1]"
"at org.apache.flink.kubernetes.shaded.okhttp3.internal.ws.RealWebSocket.loopReader(RealWebSocket.java:274) [flink-dist_2.12-1.12.1.jar:1.12.1]"
"at org.apache.flink.kubernetes.shaded.okhttp3.internal.ws.RealWebSocket$2.onResponse(RealWebSocket.java:214) [flink-dist_2.12-1.12.1.jar:1.12.1]"
"at org.apache.flink.kubernetes.shaded.okhttp3.RealCall$AsyncCall.execute(RealCall.java:206) [flink-dist_2.12-1.12.1.jar:1.12.1]"
"at org.apache.flink.kubernetes.shaded.okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32) [flink-dist_2.12-1.12.1.jar:1.12.1]"
"at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_292]"
"at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_292]"
"at java.lang.Thread.run(Thread.java:748) [?:1.8.0_292]"
"Caused by: io.fabric8.kubernetes.client.KubernetesClientException: too old resource version: 2137353712 (2137353732)"
"... 11 more"
"2021-08-26 12:41:13,093 DEBUG io.fabric8.kubernetes.client.dsl.internal.WatchConnectionManager [] - Force closing the watch io.fabric8.kubernetes.client.dsl.internal.WatchConnectionManager@7799909e"
"2021-08-26 12:41:13,093 DEBUG io.fabric8.kubernetes.client.dsl.internal.WatchConnectionManager [] - Ignoring duplicate firing of onClose event"
"2021-08-26 12:41:13,094 DEBUG io.fabric8.kubernetes.client.dsl.internal.WatchConnectionManager [] - WebSocket close received. code: 1000, reason: "
"2021-08-26 12:41:13,094 DEBUG io.fabric8.kubernetes.client.dsl.internal.WatchConnectionManager [] - Ignoring onClose for already closed/closing websocket"
"2021-08-26 12:41:13,095 ERROR org.apache.flink.runtime.entrypoint.ClusterEntrypoint [] - Fatal error occurred in the cluster entrypoint."
"org.apache.flink.util.FlinkException: JobMaster for job ef82295e3efde28d7b424565606753e0 failed."*来自志愿者整理的flink邮件归档
io.fabric8.kubernetes.client.KubernetesClientException: too old resource version 这个问题可能是由于 Pod 和 APIServer之间的网络不稳定。这个问题已经在 1.12.2 版本被修复,详见 https://issues.apache.org/jira/browse/FLINK-20417
建议使用 Flink 1.12.x 的最新版本。*来自志愿者整理的FLINK邮件归档
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。