安装zookeeper

下载:​​http://mirrors.cnnic.cn/apache/zookeeper/zookeeper-3.3.6/zookeeper-3.3.6.tar.gz​

安装:
解压到C:\tools\zookeeper-3.3.6
复制zoo_sample.cfg为zoo.cfg
内容修改:

dataDir=C:\\tools\\zookeeper-3.3.6
dataLogDir=C:\\tools\\zookeeper-3.3.6

启动:c:/tools/zookeeper-3.3.6/bin/zkServer.cmd
查看运行:
Win7 安装Storm_java
启动客户端查看:

c:/tools/zookeeper-3.3.6/bin/zkCLi.cmd -server 127.0.0.1:2181

安装Storm

下载 apache-storm-1.0.1.tar.gz
解压后放到C:\tools\apache-storm-1.0.1
修改:conf/storm.yaml(完整设置参照:​​​https://github.com/apache/storm/blob/master/conf/defaults.yaml​​)

storm.zookeeper.servers:
- "localhost"
nimbus.host: "localhost"
storm.local.dir: "C:/tools/apache-storm-1.0.1/data"
storm.log4j2.conf.dir: "C:/tools/apache-storm-1.0.1/log4j2"
supervisor.slots.ports:
- 6700
- 6701
- 6702
- 6703

如果jdk安装在program files下,还要注意path变量设置:
例如:
C:\Program Files\Java\jdk1.6.0_45 要改为 C:\PROGRA~1\Java\jdk1.6.0_45
启动:

C:/tools/apache-storm-1.0.1/bin/storm nimbus
C:/tools/apache-storm-1.0.1/bin/storm supervisor
C:/tools/apache-storm-1.0.1/bin/storm logviewer
C:/tools/apache-storm-1.0.1/bin/storm ui