storm部署问题:Could not find leader nimbus from seed hosts

应用程序及版本:

  • zookeeper:3.4.5
  • storm:1.1.1

问题出现点:

在linux系统重新部署storm集群,相关storm配置如下:

storm.zookeeper.servers:
    - "node-01"
    - "node-02"
    - "node-03"
#
nimbus.seeds: ["node-01", "node-02", "node-03"]
#
storm.local.dir: "/export/data/storm"
ui.port: 8080
supervisor.slots.ports:
    - 6700
    - 6701

分别启动nimbus、ui、supervisor,使用jps指令,显示各项程序正常:

2346 nimbus
3130 Jps
2347 core
1996 QuorumPeerMain
2348 logviewer

但进入ui界面发现报以下错误:

org.apache.storm.utils.NimbusLeaderNotFoundException: Could not find leader nimbus from seed hosts [localhost]. Did you specify a valid list of nimbus hosts for config nimbus.seeds?
at org.apache.storm.utils.NimbusClient.getConfiguredClientAs(NimbusClient.java:90)

问题原因:

由于是重新部署的storm,原先旧的storm已在zookeeper中注册了信息,只要进入zookeeper客户端将storm删除:

./bin/zkCli.sh
ls / 
rmr /storm

重启storm集群即可。

猜你喜欢

转载自blog.csdn.net/LINBE_blazers/article/details/82872660