#spring.kafka.listener.type=single
spring.kafka.bootstrap-servers:127.0.0.1:9092,127.0.0.1:9093,127.0.0.1:9094
spring.kafka.producer.retries=1
spring.kafka.producer.acks=all
spring.kafka.producer.batch-size=16384
spring.kafka.producer.buffer-memory=33554432
#spring.kafka.producer.client-id=hello-kafka
spring.kafka.producer.key-serializer=org.apache.kafka.common.serialization.StringSerializer
spring.kafka.producer.value-serializer=org.apache.kafka.common.serialization.StringSerializer
#spring.kafka.producer.compression-type=gzip
#spring.kafka.producer.properties.partitioner.class=top.zysite.hello.kafka.partitioner.MyPartitioner
#spring.kafka.producer.properties.linger.ms=1000
#spring.kafka.producer.properties.max.block.ms=6000
#spring.kafka.consumer.group-id=testGroup
spring.kafka.consumer.enable-auto-commit=true
spring.kafka.consumer.auto-commit-interval=100
#spring.kafka.consumer.max-poll-records=100
spring.kafka.consumer.key-deserializer=org.apache.kafka.common.serialization.StringDeserializer
spring.kafka.consumer.value-deserializer=org.apache.kafka.common.serialization.StringDeserializer
spring.kafka.consumer.auto-offset-reset=latest
spring.kafka.consumer.properties.spring.json.trusted.packages='*'
#spring.kafka.consumer.properties.interceptor.classes=top.zysite.hello.kafka.interceptor.MyConsumerInterceptor
#spring.kafka.consumer.properties.session.timeout.ms=120000文章来源:https://www.toymoban.com/news/detail-411333.html
#spring.kafka.consumer.properties.request.timeout.ms=120000文章来源地址https://www.toymoban.com/news/detail-411333.html
到了这里,关于Connection to node -1 (/127.0.0.1:9092) could not be established. Broker may not be available.的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!