gpt4 book ai didi

apache-zookeeper - 弗林克 : HA mode killing leading jobmanager terminating standby jobmanagers

转载 作者:行者123 更新时间:2023-12-01 03:19:43 28 4
gpt4 key购买 nike

我试图让 Flink 使用 Zookeeper 在 HA 模式下运行,但是当我尝试通过杀死领导者 JobManager 来测试它时,我所有的备用作业管理器也被杀死了。

因此,与其由备用工作经理接任新的领导者,不如说他们都被杀死了,这本不应该发生。

我的设置:
4 个服务器,其中 3 个服务器运行 Zookeeper,但只有 1 个服务器将托管所有 JobManager。

ad011.local: Zookeeper + Jobmanagers
ad012.local: Zookeeper + Taskmanager
ad013.local: Zookeeper
ad014.local: nothing interesting

我的主文件如下所示:
ad011.local:8081
ad011.local:8082
ad011.local:8083

我的 flink-conf.yaml:
jobmanager.rpc.address: ad011.local

blob.server.port: 6130,6131,6132

jobmanager.heap.mb: 512
taskmanager.heap.mb: 128
taskmanager.numberOfTaskSlots: 4
parallelism.default: 2
taskmanager.tmp.dirs: /var/flink/data

metrics.reporters: jmx
metrics.reporter.jmx.class: org.apache.flink.metrics.jmx.JMXReporter
metrics.reporter.jmx.port: 8789,8790,8791

high-availability: zookeeper
high-availability.zookeeper.quorum: ad011.local:2181,ad012.local:2181,ad013.local:2181

high-availability.zookeeper.path.root: /flink
high-availability.zookeeper.path.cluster-id: /cluster-one
high-availability.storageDir: /var/flink/recovery
high-availability.jobmanager.port: 50000,50001,50002

当我使用 start-cluster.sh 脚本运行 flink 时,我看到我的 3 个 JobManager 正在运行,并转到 WebUI,它们都指向 ad011.local:8081,这是领导者。我猜哪个没问题?

然后我尝试通过使用 kill 杀死领导者来测试故障转移,然后我所有其他的备用 JobManager 也停止。

这是我在备用 JobManager 日志中看到的内容:
2017-09-29 08:08:41,590 INFO  org.apache.flink.runtime.jobmanager.JobManager                - Starting JobManager at akka.tcp://flink@ad011.local:50002/user/jobmanager.
2017-09-29 08:08:41,590 INFO org.apache.flink.runtime.leaderelection.ZooKeeperLeaderElectionService - Starting ZooKeeperLeaderElectionService org.apache.flink.runtime.leaderelection.ZooKeeperLeaderElectionService@72d546c8.
2017-09-29 08:08:41,598 INFO org.apache.flink.runtime.webmonitor.WebRuntimeMonitor - Starting with JobManager akka.tcp://flink@ad011.local:50002/user/jobmanager on port 8083
2017-09-29 08:08:41,598 INFO org.apache.flink.runtime.leaderretrieval.ZooKeeperLeaderRetrievalService - Starting ZooKeeperLeaderRetrievalService.
2017-09-29 08:08:41,645 INFO org.apache.flink.runtime.webmonitor.JobManagerRetriever - New leader reachable under akka.tcp://flink@ad011.local:50000/user/jobmanager:f7dc2c48-dfa5-45a4-a63e-ff27be21363a.
2017-09-29 08:08:41,651 INFO org.apache.flink.runtime.leaderretrieval.ZooKeeperLeaderRetrievalService - Starting ZooKeeperLeaderRetrievalService.
2017-09-29 08:08:41,722 INFO org.apache.flink.runtime.clusterframework.standalone.StandaloneResourceManager - Received leader address but not running in leader ActorSystem. Cancelling registration.
2017-09-29 09:26:13,472 WARN akka.remote.ReliableDeliverySupervisor - Association with remote system [akka.tcp://flink@ad011.local:50000] has failed, address is now gated for [5000] ms. Reason: [Disassociated]
2017-09-29 09:26:14,274 INFO org.apache.flink.runtime.jobmanager.JobManager - RECEIVED SIGNAL 15: SIGTERM. Shutting down as requested.
2017-09-29 09:26:14,284 INFO org.apache.flink.runtime.blob.BlobServer - Stopped BLOB server at 0.0.0.0:6132

任何帮助,将不胜感激。

最佳答案

通过使用 ./bin/start-cluster.sh 而不是使用服务文件(调用相同的脚本)运行我的集群解决了这个问题,服务文件显然会杀死其他作业管理器。

关于apache-zookeeper - 弗林克 : HA mode killing leading jobmanager terminating standby jobmanagers,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46489856/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com