开发者社区> 问答> 正文

flink on native k8s jobManger频繁重启是什么原因导致的?

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邮件归档

展开
收起
EXCEED 2021-12-02 15:48:50 1388 0
1 条回答
写回答
取消 提交回答
  • 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邮件归档

    2021-12-02 16:17:15
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Flink CDC Meetup PPT - 龚中强 立即下载
Flink CDC Meetup PPT - 王赫 立即下载
Flink CDC Meetup PPT - 覃立辉 立即下载

相关镜像