#每台服务器的broker.id都不能相同 broker.id=101 host.name=192.168.126.100 #监听地址 不能输入0.0.0.0 listeners=PLAINTEXT://192.168.126.100:9092 #在log.retention.hours=168 下追加 advertised.listeners=PLAINTEXT://192.168.126.100:9092
message.max.byte=5242880 default.replication.factor=2 replica.fetch.max.bytes=5242880
#设置zookeeper的连接端口 zookeeper.connect=192.168.126.100:2181,192.168.126.101:2181 zookeeper.connection.timeout.ms=1000000 kafka.metrics.polling.interval.secs=5 kafka.metrics.reporters=kafka.metrics.KafkaCSVMetricsReporter kafka.csv.metrics.dir=/tmp/kafka_metrics kafka.csv.metrics.reporter.enabled=false
|