Storm 安装,配置详解

准备工作

安装 Zookeeper ,详见 :Zookeeper 集群安装、配置详解

下载安装

1、下载

1
wget http://mirror.bit.edu.cn/apache/storm/apache-storm-0.9.3/apache-storm-0.9.3.tar.gz

2、解压

3、配置

1
vim apache-storm-0.9.3/conf/storm.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
storm.zookeeper.servers:
- "master"
- "slave1"
- "slave2"
nimbus.host: "master"
storm.local.dir: "/home/hadoop/apache-storm-0.9.3/data"
ui.port: 8888
supervisor.slots.ports:
- 6700
- 6701
- 6702
- 6703
storm.messaging.transport: "backtype.storm.messaging.netty.Context"
storm.messaging.netty.server_worker_threads: 1
storm.messaging.netty.client_worker_threads: 1
storm.messaging.netty.buffer_size: 5242880
storm.messaging.netty.max_retries: 100
storm.messaging.netty.max_wait_ms: 1000
storm.messaging.netty.min_wait_ms: 100

同步到其他节点

1
2
sudo scp storm.yaml master:/home/hadoop/apache-storm-0.9.3/conf/storm.yaml
sudo scp storm.yaml slave2:/home/hadoop/apache-storm-0.9.3/conf/storm.yaml

启动

1、启动 nimbus (只在主机执行)

1
2
nohup /home/hadoop/apache-storm-0.9.3/bin/storm nimbus &
nohup /home/hadoop/apache-storm-0.9.3/bin/storm nimbus >/dev/null 2>&1 & //丢掉错误信息

2、启动 ui (主机执行)

1
2
nohup /home/hadoop/apache-storm-0.9.3/bin/storm ui &
nohup /home/hadoop/apache-storm-0.9.3/bin/storm ui >/dev/null 2>&1 &

3、启动 supervisor (全部执行)

1
nohup /home/hadoop/apache-storm-0.9.3/bin/storm supervisor &

查看 UI 状态

浏览器输入 http://192.168.246.131:8888/