Storm-HA 配置
进入storm/conf目录,修改storm.yaml配置文件为如下内容:
# zookeeper ip storm.zookeeper.servers: - "192.168.7.108" - "192.168.7.109" - "192.168.7.110" storm.zookeeper.port: 2181 storm.zookeeper.root: "/storm" #Nimbus H/A nimbus.seeds: ["storm01","storm02"] #只能有两个 #Nimbus dir storm.local.dir: "/ztapp/usr/storm/wkdir" #supervisor worker port, 4 workers example supervisor.slots.ports: - 6700 - 6701 - 6702 - 6703
在配置的主机上都启动ui, nimbus即可.
当一台nimbus挂掉之后, 另外一台会立刻跟上, 检测到挂的nimbus会自动重启.不会影响supervisor上的作业.