12(kafka安装)
作者:互联网
1,修改配置
node0002:
cd /software 上传kafka_2.10-0.9.0.1.tgz
tar xf kafka_2.10-0.9.0.1.tgz -C /opt/sxt/
cd /opt/sxt/kafka_2.10-0.9.0.1
cd config/
vi server.properties (关注broker.id node0002,0003,0004 递增)
zookeeper.connect=node0002:2181, node0003:2181,node0004:2181 (末行模式/zookeeper 快速寻找, 复制一行备份)
cd /opt/sxt/
scp -r kafka_2.10-0.9.0.1/ node0003:`pwd`
scp -r kafka_2.10-0.9.0.1/ node0004:`pwd`
依次配置node0003为broker.id=1 node0004为broker.id=2
2,启动
zkServer.sh start
cd /opt/sxt/kafka_2.10-0.9.0.1 (没有配置环境变量,要在这里启动)
./bin/kafka-server-start.sh ./config/server.properties (三台机器都启动)
标签:0.9,12,0.1,kafka,sxt,cd,安装,2.10 来源: https://www.cnblogs.com/dongchao3312/p/13598055.html