
需要先开启zookeeper
解压安装包[root@master software]# tar -zxvf apache-storm-1.2.3.tar.gz -C /usr/local/src [root@master software]# cd /usr/local/src [root@master src]# mv apache-storm-1.2.3/ storm配置环境变量
[root@master src]# vim /etc/profile [root@master conf]# source /etc/profile ###storm export STORM_HOME=/usr/local/src/storm export PATH=$PATH:$STORM_HOME/bin
分发环境变量
[root@master conf]# scp /etc/profile slave1:/etc/profile [root@master conf]# scp /etc/profile slave2:/etc/profile修改配置文件
[root@master src]# cd /usr/local/src/storm/conf
[root@master conf]# vim storm.yaml
##冒号后面要有空格
storm.zookeeper.servers:
- "master"
- "slave1"
- "slave2"
storm.local.dir: "/usr/local/src/storm/data"
nimbus.seeds: ["master"] //不是ha的话只需要指定一个主机
supervisor.slots.ports:
- 6700
- 6701
- 6702
- 6703
ui.port: 9999
分发目录
[root@master conf]# scp -r /usr/local/src/storm slave1:/usr/local/src [root@master conf]# scp -r /usr/local/src/storm slave2:/usr/local/src启动集群
[root@master conf]# nohup storm nimbus & [root@master conf]# nohup storm ui & [root@master conf]# nohup storm supervisor &
[root@slave1 ~]# nohup storm nimbus & //不是hadoopHA不用启动 [root@slave1 ~]# nohup storm supervisor &
[root@slave2 ~]# nohup storm supervisor &
进入ui界面