我的问题能够解决来源于这两篇帖子 storm ui显示supervisor个数与实际不符的解决 storm ui显示supervisor个数与实际不符的解决
按理说我的集群UI界面应该显示10个slot两个Supervisor的,但是现在的数量只有实际开启数量的一半儿,明显是有问题的,查询了相关的资料后,发现自己的问题确实如上所说:
Try clearing the contents of storm.local.dir on both supervisors and restarting. This happens often for me when I clone a supervisor to a new instance and forget to reset the state.
See this for more details: https://github.com/nathanmarz/storm/wiki/Troubleshooting
On Wednesday, December 11, 2013 10:43:11 AM UTC-6, thierry wrote:
Hi, all,
I just installed Storm and tried a little bit. I use 1 node for Zookeeper, 1 node for Nimbus and 2 nodes for Supervisors. After I started all of them, I can only see 1 supervisor up at the same time from the storm UI. If I fresh the UI again and again, the 1 supervisor which is displayed changes from 1 of the 2 to another.
I tried read different manuals, blogs and guides, but failed to figure out why. Any idea?
This is my config for storm:
########### These MUST be filled in for a storm configuration
storm.zookeeper.servers:
- "compute-0-7"
#compute-0-7 is my zookeeper
nimbus.host: 10.1.1.1
nimbus.childopts: "-Xmx1024m -Djava.net.preferIPv4Stack=true"
ui.childopts: "-Xmx768m -Djava.net.preferIPv4Stack=true"
supervisor.childopts: "-Djava.net.preferIPv4Stack=true"
worker.childopts: "-Xmx768m -Djava.net.preferIPv4Stack=true"
storm.zookeeper.port: 2181
storm.local.dir: "/users/staff/xuntao/storm/tmp/storm"
storm.cluster.mode: "distributed"
java.library.path: "/users/staff/xuntao/storm/zeromq/lib:/users/staff/xuntao/storm/jzmq/lib"
supervisor.slots.ports:
- 6700
- 6701
supervisor.enable: true
按照博主的操作,清除storm.local.dir下的文件,再重启集群
删除文件后,重启集群,问题得到解决,节点信息恢复正常.