kafka & zookeeper 4/12/2016

1 準備apache

zookeeper-3.4.8windows

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



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

2 zookeeper安裝server

(1)複製如下文件爲zoo.cfgblog

zookeeper-3.4.8\conf\zoo_sample.cfgget

(2)修改data目錄kafka

dataDir=/tmp/zookeeper改成dataDir=D:/tmp/zookeepercmd

(3)啓動zkServer.cmdit

(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

相關文章
相關標籤/搜索