使用“隔离令牌未设置例外”部署的Flink群集

时间:2018-08-07 16:48:14

标签: java apache-flink

此异常是什么意思?

我正在尝试在HA模式(zookeeper)中部署具有3个节点的flink集群(v.1.5.2)。

我有以下flink-conf.yaml设置:

high-availability: zookeeper    
high-availability.storageDir: /flink/ha    
high-availability.zookeeper.quorum: {node1_ip}:2181,{node2_ip}:2181,{node3_ip}:2181    
high-availability.jobmanager.port: 50010    
high-availability.zookeeper.path.root: /flink    
high-availability.zookeeper.path.namespace: /default_ns

Zookeeper群集正在运行。 执行start-cluster.sh之后,我只有一个工作节点。另外2个节点返回 {“错误”:[“无法检索当前领导者的重定向地址。请尝试刷新。”]} 从Web UI

和flink-root-standalongsession-.log中的异常:

2018-08-07 18:55:22,081 ERROR org.apache.flink.runtime.rest.handler.legacy.files.StaticFileServerHandler  - Could not retrieve the redirect address.
java.util.concurrent.CompletionException: org.apache.flink.runtime.rpc.exceptions.FencingTokenException: Fencing token not set: Ignoring message LocalFencedMessage(aec7a76447f8d44131605f5c10fb4fdc, LocalRpc
...
<------>at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
<------>at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.flink.runtime.rpc.exceptions.FencingTokenException: Fencing token not set: Ignoring message LocalFencedMessage(aec7a76447f8d44131605f5c10fb4fdc, LocalRpcInvocation(requestRestAddress(T
<------>at org.apache.flink.runtime.rpc.akka.FencedAkkaRpcActor.handleRpcMessage(FencedAkkaRpcActor.java:59)

0 个答案:

没有答案