1、将文件解压到/usr/local
[root@localhost src]# tar -zxvf /usr/local/src/apache-storm-0.9.2-incubating.tar.gz -C /usr/local/
2、修改配置文件 storm.yaml
[root@localhost local]# vim /usr/local/apache-storm-0.9.2-incubating/conf/storm.yaml
配置Zookeeper和nimbus地址
storm.zookeeper.servers: - "192.168.7.151" - "192.168.7.152" - "192.168.7.153" nimbus.host: "192.168.7.151"
如下图所示:
3、启动Zookeeper集群
4、一次启动nimbus、supervisor、ui
[root@localhost apache-storm-0.9.2-incubating]# bin/storm nimbus & [root@localhost apache-storm-0.9.2-incubating]# bin/storm supervisor & [root@localhost apache-storm-0.9.2-incubating]# bin/storm ui &
启动成功如下图所示:
core对应的进程时ui
5、浏览器客户端ui访问:http://192.168.7.151:8080/index.html
如下图所示: