kafka & zookeeper 4/12/2016

1 准备

zookeeper-3.4.8

http://apache.opencas.org/zookeeper/zookeeper-3.4.8/



http://greemranqq.iteye.com/blog/2171449

2 zookeeper安装

(1)复制以下文件为zoo.cfg

zookeeper-3.4.8\conf\zoo_sample.cfg

(2)修改data目录

dataDir=/tmp/zookeeper改为dataDir=D:/tmp/zookeeper

(3)启动zkServer.cmd

(4)验证

C:\windows\system32>jps 

出现 QuorumPeerMain



http://blog.csdn.net/laputa73/article/details/48826167

3 zookeeper

(1) kafka_2.11-0.9.0.1\config\server.properties

由log.dirs=/tmp/kafka-logs改为log.dirs=d:/tmp/kafka-logs

(2)启动

kafka-server-start.bat ..\..\config\server.properties

你可能感兴趣的:(kafka & zookeeper 4/12/2016)