1.配置文件:
[root@quickstart bin]# cat ../conf/storm.yaml
storm.zookeeper.servers:
- "quickstart"
storm.local.dir: "/home/apache-storm-1.0.1/worker"
supervisor.slots.ports:
- 6700
- 6701
- 6702
- 6703
ui.port: 8089
2.启动脚本:
[root@quickstart bin]# cat storm-start
storm nimbus >/dev/null 2>&1 &
storm supervisor >/dev/null 2>&1 &
storm ui >/dev/null 2>&1 &
3.停止脚本:
[root@quickstart bin]# cat storm-stop
for pid in `ps -ef |grep storm |awk -F " " '{print $2}'`; do kill -9 $pid &> /dev/null; done
note : 如果UI里supervisor 始终只显示一个清空storm.local.dir: "/home/apache-storm-1.0.1/worker" 即可。