(機器部署狀況詳見)這篇博客
3檯安裝supervisor,2檯安裝nimbushtml
(1)安裝jdk1.8
(2)安裝zookeeper3.4.5
以上兩部分安裝可查看這篇博客
(3)下載Storm 1.2.2 下載鏈接apache
(1)解壓縮瀏覽器
tar -zxvf apache-storm-1.2.2.tar.gz
(2)修改目錄conf/storm.yaml文件oop
//去除註釋,改爲配置的zk主機列表 storm.zookeeper.servers: - "slave01" - "slave02" - "slave03" //nimbus主機列表 nimbus.seeds: ["master", "master2"] 增長如下配置,配置存儲storm臨死數據目錄 storm.local.dir: "/home/hadoop/storage/storm" //去除註釋,配置drpc drpc.servers: - "master" - "master2" //配置一臺supervisor有幾個slot supervisor.slots.ports: - 6700 - 6701 - 6702 - 6703
(3)將配置文件複製到其餘機器(其餘四臺機器)ui
//slave01表示主機名 scp -r apache-storm-1.2.2 slave01:/home/hadoop/
(1)在master,master2上啓動nimbus進程code
apache-storm-1.2.2/bin/storm nimbus & (&表示後臺運行)
(2)在slave01,slave02,slave03上啓動supervisor進程orm
apache-storm-1.2.2/bin/storm supervisor & (&表示後臺運行)
(3)在master,master2上啓動drpc進程,和 uiserver
apache-storm-1.2.2/bin/storm drpc & (&表示後臺運行) apache-storm-1.2.2/bin/storm UI & (&表示後臺運行)
(4)用瀏覽器訪問http://master:8080,查看storm UI界面信息
htm