apache-storm-1.1.0完全分布式部署记录

部署环境

192.168.199.10(master)

192.168.199.11(datanode1)

192.168.199.12(datanode2)

jdk1.7

安装包下载

apache-storm-1.1.0.tar.gz

zookeeper-3.4.6安装部署

解压安装包

这里安装到/usr/local目录

tar xvzf apache-storm-1.1.0.tar.gz -C /usr/local/  

配置文件storm.yaml

storm.zookeeper.servers:  
     - "192.168.199.10"
     - "192.168.199.11"
     - "192.168.199.12"
storm.local.dir: "/usr/local/apache-storm-1.1.0/data"  
nimbus.host: "192.168.199.10"  
supervisor.slots.ports:  
     - 6700
     - 6701
     - 6702
     - 6703

启动集群

192.168.199.10启动nimbus,ui,supervisor

bin/storm nimbus 1>/dev/null 2>&1 &  
bin/storm ui 1>/dev/null 2>&1 &  
bin/storm supervisor 1>/dev/null 2>&1 &  

192.168.199.11192.168.199.12 分别启动 supervisor

bin/storm supervisor 1>/dev/null 2>&1 &  

访问 http://192.168.199.10:8080/index.html 访问strom ui查看集群情况,如图: