为什么运行老是Failed to get master from ZK呢.本地模式可以运行
Re回 1楼中间件那珂的帖子
nimbus节点和zookeeper的leader不是在一个节点上面,本地模式可以运行,共有三个节点,一使用集群模式,就提示:
Exception in thread 'main' java.lang.RuntimeException: java.lang.RuntimeException: Failed to get master from ZK.
at backtype.storm.utils.NimbusClient.getConfiguredClientAs(NimbusClient.java:80)
at backtype.storm.utils.NimbusClient.getConfiguredClient(NimbusClient.java:45)
at backtype.storm.utils.NimbusClient.getConfiguredClient(NimbusClient.java:40)
at backtype.storm.StormSubmitter.submitTopology(StormSubmitter.java:115)
at backtype.storm.StormSubmitter.submitTopology(StormSubmitter.java:59)
at com.jstorm.practice.kaopu.Main.main(Main.java:33)
Caused by: java.lang.RuntimeException: Failed to get master from ZK.
at backtype.storm.security.auth.ThriftClient.getMaster(ThriftClient.java:131)
at backtype.storm.security.auth.ThriftClient.(ThriftClient.java:87)
at backtype.storm.utils.NimbusClient.(NimbusClient.java:94)
at backtype.storm.utils.NimbusClient.getConfiguredClientAs(NimbusClient.java:76)
... 5 more
Caused by: java.lang.RuntimeException: No alive nimbus
at backtype.storm.security.auth.ThriftClient.getMasterByZk(ThriftClient.java:103)
at backtype.storm.security.auth.ThriftClient.getMaster(ThriftClient.java:128)
... 8 more
-------------------------
回 1楼中间件那珂的帖子
谢谢你的解答。
-------------------------
回 4楼玄弟的帖子
恩,好的,真是麻烦你了,谢谢你。我自己去看一下,看看能不能解决。谢谢你
-------------------------
回 4楼玄弟的帖子
你好,我有一个问题,百度找了很久,感觉网上都没有说清楚,相关的书解释不清晰,就是executor拥有多个task的时候,这些task是不是共享组件(spout/bolt)里面的资源,比如,一个bolt里面定义了一个ConcurrentMap,那么这些task干活的时候,是不是共享这一个Map.谢谢你。
赞0
踩0