8、安装Storm集群
http://www.apache.org/dyn/closer.lua/storm/apache-storm-1.1.0/apache-storm-1.1.0.tar.gz
- 将Storm安装到/usr/local/storm
tar -xvzf apache-storm-1.1.0.tar.gz -C /usr/local
mv /usr/local/apache-storm-1.1.0 /usr/local/storm
# Storm
export STORM_HOME=/usr/local/storm
export PATH=$PATH:$STORM_HOME/bin
export JAVA_HOME=/usr/local/jdk1.8.0_121
# 注意每行前有一个空格,并且不能使用Tab,必须空格
storm.zookeeper.servers:
- "node1"
- "node2"
- "node3"
nimbus.seeds: ["node1", "node2"]
storm.local.dir: "/tmp/storm"
supervisor.slots.ports:
- 6700
- 6701
- 6702
- 6703
scp -r /usr/local/storm/ root@node2:/usr/local/
scp -r /usr/local/storm/ root@node3:/usr/local/
scp -r /usr/local/storm/ root@node4:/usr/local/
scp -r /usr/local/storm/ root@node5:/usr/local/
scp -r /usr/local/storm/ root@node6:/usr/local/
在nimbus主机上
nohup storm nimbus 1>/dev/null 2>&1 &
nohup storm ui 1>/dev/null 2>&1 &
在supervisor主机上
nohup storm supervisor 1>/dev/null 2>&1 &
http://node1:8080/
网友评论