kafka使用自带zookeeper 单机测试生产消息报错
[2020-01-04 22:19:05,580] ERROR Error when sending message to topic test with key: null, value: 4 bytes with error: (org.apache.kafka.clients.producer.internals.ErrorLoggingCallback)
org.apache.kafka.common.errors.TimeoutException: Expiring 1 record(s) for test-0: 1532 ms has passed since batch creation plus linger time

解决办法:

1.listeners是否配置
kafka使用自带zookeeper单机测试生产消息报错when sending message to topic test with key: null, value: 4 bytes with
2.zookeeper.connect是否添加
kafka使用自带zookeeper单机测试生产消息报错when sending message to topic test with key: null, value: 4 bytes with
解决完毕 测试成功
kafka使用自带zookeeper单机测试生产消息报错when sending message to topic test with key: null, value: 4 bytes with
kafka使用自带zookeeper单机测试生产消息报错when sending message to topic test with key: null, value: 4 bytes with

相关文章:

  • 2022-01-21
  • 2021-10-24
  • 2022-12-23
  • 2021-11-28
  • 2021-11-07
  • 2021-08-24
  • 2021-05-15
  • 2021-12-01
猜你喜欢
  • 2017-12-04
  • 2021-08-05
  • 2021-05-18
  • 2021-07-12
  • 2022-03-10
  • 2022-12-23
相关资源
相似解决方案