前提条件:安装好zookeeper,见下文
http://blog.csdn.net/jameshadoop/article/details/49621709
环境:
centos 6.5 x64
kafka_2.9.2-0.8.1.1
1.解压
tar -xzf kafka_2.9.2-0.8.1.1.tgz
2.配置
copy两个副本:
cp config/server.properties config/server-1.properties
cp config/server.properties config/server-2.properties
$kafka_home/config文件夹中配置下面几个文件:
vim server.properties
broker.id=0
port=