| CentOS7-1 |
CentOS7-2 |
CentOS7-3 |
CentOS7-4 |
| nimbus |
supervisor |
supervisor |
supervisor |
| core(UI) |
|
|
|
1、首先安裝配置zookeeper
2、Python安裝(官網要求2.6.6以上),CentOS7系統自帶2.7.x版本。
3、配置/opt/apache-storm-1.0.3/conf/storm.yaml
storm.zookeeper.servers:
- "CentOS7-1"
- "CentOS7-2"
- "CentOS7-3"
nimbus.seeds: ["CentOS7-1"]
supervisor.slots.ports:
- 6700
- 6701
- 6702
- 6703
storm.local.dir: "/storm/localdir/"
ui.port: 10080
注意:上面配置參數前的空格符、TAB符不要去掉,否則會報錯。
4、同步以上配置到其他服務器。
5、 在各個節點上增加storm集群本地存儲文件,該目錄被Nimbus和Supervisor進程用於存儲少量狀態,如jars、confs等的本地磁盤目錄,需要提前創建該目錄並給以足夠的訪問權限。然后在storm.yaml中配置該目錄
sudo mkdir -p /storm/localdir/
6、啟動Storm各個后台進程
在hostname=master節點(CentOS7-1)啟動Nimbus進程服務,放置於后台運行
nohup bin/storm nimbus >/dev/null 2>&1 &
在各個hostname-slavery節點(CentOS7-2,CentOS7-3,CentOS7-4)啟動Supervisor
nohup bin/storm supervisor >/dev/null 2>&1 &
在hostname=master(CentOS7-1)節點啟動UI進程服務,放置於后台運行
nohup bin/storm ui >/dev/null 2>&1 &
7、 啟動后打開瀏覽器,訪問http://10.79.115.111:10080,打開的storm ui界面如下:
