broker.id:1
集群唯一ID,手动维护
listeners=PLAINTEXT://:9092
advertised.listeners=PLAINTEXT://IPAddress:9092
监听
num.partitions=8
partition数量,建议与broker成倍数关系
default.replication.factor=3
partition备份数量
log.retention.hours=168
数据保存时间
zookeeper.connect=localhost:2181
zookeeper地址,集群以逗号分隔
port=9092
host.name=xxx.xxx.xxx.xxx
advertised.host.name=xxx.xxx.xxx.xxx
advertised.port=9092
其他均为默认配置