節點 | nimbus | supervisor | ZK |
slave1 | 1 | 0 | 1 |
slave2 | 0 | 1 | 1 |
slave3 | 0 | 1 | 1 |
storm.zookeeper.servers: - "slave1" - "slave2" - "slave3" storm.local.dir: "/root/storm" nimbus.host: "slave1" supervisor.slots.ports: - 6700 - 6701 - 6702 - 6703
scp -r storm0.10.2 slave2:/opt/storm/
export STORM_HOME=/opt/storm/storm0.10.1
每一個節點運行zkServer.sh start
在安裝目錄下建立日誌目錄 mkdir logs slave1上啓動Nimbus,web監控模塊 $ storm nimbus >> ./logs/nimbus.out 2>&1 & $ tail -f logs/nimbus.out $ storm ui >> ./logs/ui.out 2>&1 & $ tail -f logs/ui.out
節點slave2和slave3啓動supervisor,按照配置,每啓動一個supervisor就有了4個slots $ storm supervisor >> ./logs/supervisor.out 2>&1 & $ tail -f logs/supervisor.out (固然node1也能夠啓動supervisor)
http://slave1:8080/,能夠看到storm集羣的信息和拓撲信息