1.准备工具
- zookeeper-3.4.13
- storm-1.2.2
2.安装
zookeeper的安装见上文
tar -zxvf apache-storm-1.2.2.tar.gz
mv apache-storm-1.2.2 storm
cd storm/conf
修改storm.yaml
########### These MUST be filled in for a storm configuration
storm.zookeeper.servers:
- "master"
- "slave1"
- "slave2"
- "slave3"
nimbus.seeds: ["master"]
storm.local.dir: "/usr/local/storm/localdir"
# ##### These may optionally be filled in:
分发安装包到slave1,slave2,slave3
发送到slave1
scp -r storm slave1:/usr/local/
配置环境变量 vim /etc/profile
export ZOOKEEPER_HOME=/usr/local/zookeeper
export STORM_HOME=/usr/local/storm
export PATH=$PATH:$ZK_HOME/bin:$STORM_HOME/bin
环境变量生效 source /etc/profile
3.启动
mastesr nimbus,ui 启动
storm nimbus 1>/dev/null 2>&1 &
storm ui 1>/dev/null 2>&1 &
其中'1>/dev/null 2>&1 & '是后台无消息启动的模式
slave集群supervisor启动
storm supervisor 1>/dev/null 2>&1 &
打开浏览器查看:http://192.168.56.100:8080
成功后的截图
storm.png
网友评论