Storm1 0 集群部署(HA)

2021-07-26 02:50:09 字數 1580 閱讀 8794

zookeeper集群部署

storm ha集群規劃

nimbus    :192.168.175.141(active), 192.168.175.142

supervisor:192.168.175.141, 192.168.175.142, 192.168.175.143

-1.0

.2.tar.gz

mv apache-storm

-1.0

.2 storm

#storm_env

export path=$path:$storm_home/bin

進入storm/conf目錄,修改storm.yaml配置檔案為如下內容

# zookeeper ip

storm.zookeeper

.servers:

- "mini05"

- "mini06"

- "mini07"

storm.zookeeper

.port: 2181

storm.zookeeper

.root: "/storm"

#nimbus h/a

nimbus.seeds: ["mini01", "mini02"]

#nimbus dir

storm.local

#supervisor worker port, 4 workers example

supervisor.slots

.ports:

- 6700

- 6701

- 6702

- 6703

絕大多數配置資訊都是使用預設值,具體參考:

按nimbus、supervisor的分布情況啟動storm程序

mini01上啟動nimbus、supervisor、ui

nohup storm nimbus >/dev/

null

2>&1 &

nohup storm supervisor >/dev/

null

2>&1 &

nohup storm ui >/dev/

null

2>&1 &

mini02啟動nimbus、supervisor、ui

nohup storm nimbus >/dev/

null

2>&1 &

nohup storm supervisor >/dev/

null

2>&1 &

nohup storm ui >/dev/

null

2>&1 &

mini03啟動supervisor

Storm1 0支援HA集群部署(HA)

storm ha集群規劃 nimbus 192.168.175.141 active 192.168.175.142 supervisor 192.168.175.141,192.168.175.142,192.168.175.143 mv apache storm 1.0.2 storm stor...

Storm1 0 3集群部署

storm集群部署 1 所有的集群上都要配置hosts vi etc hosts 192.168.33.201 storm1 hadoop1 zk1 192.168.33.202 storm2 hadoop2 zk2 192.168.33.203 storm3 hadoop3 zk3 2 集群部署的...

storm1 2 2 集群搭建

2 修改conf目錄下的storm.yaml配置檔案 注意,storm對配置檔案的格式校驗非常嚴格,以下配置項,每行前要有乙個空格,和 後都要有空格 zookeeper位址,storm.zookeeper.servers xx.xx.xx.xx storm.zookeeper.port 2181 s...