kafka 简介及安装

2019-05-09  本文已影响0人  Alexander_Zz

简介


安装步骤

在三台服务器上均完成此配置

~]# cd /usr/local/src
src]# tar xvf zookeeper-3.4.14.tar.gz
src]#ln -sv /usr/local/src/kafka_2.12-2.2.0 /usr/local/kafka
broker.id=1   # 节点 ID
listeners=PLAINTEXT://172.18.33.104:9092   # 监听地址及端口
num.network.threads=3
num.io.threads=8
socket.send.buffer.bytes=102400
socket.receive.buffer.bytes=102400
socket.request.max.bytes=104857600
log.dirs=/tmp/kafka-logs
num.partitions=1
num.recovery.threads.per.data.dir=1
offsets.topic.replication.factor=1
transaction.state.log.replication.factor=1
transaction.state.log.min.isr=1
log.retention.hours=168   # 数据保存时长,单位小时,默认 1 周
log.segment.bytes=1073741824
log.retention.check.interval.ms=300000
zookeeper.connect=172.18.33.104:2181,172.18.33.105:2181,172.18.33.106:2181   # zookeeper 地址及端口,使用 "," 隔开
zookeeper.connection.timeout.ms=6000
group.initial.rebalance.delay.ms=0
~]# /usr/local/kafka/bin/kafka-server-start.sh -daemon /usr/local/kafka/config/server.properties
上一篇下一篇

猜你喜欢

热点阅读