spring boot 整合kafka 报错 Exception thrown when sending a message with key='null' and payload=J

Posted 奋斗的程序猿

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了spring boot 整合kafka 报错 Exception thrown when sending a message with key='null' and payload=J相关的知识,希望对你有一定的参考价值。

 org.springframework.kafka.support.LoggingProducerListener- Exception thrown when sending a message with key=null and payload={"dataDts":["20180329","20180328","20180327","20180326","20180323"],"prodCd":"ZZTZYCZG01","type":"ed... to topic proccess_trading_end:
org.apache.kafka.common.errors.TimeoutException: Failed to update metadata after 60000 ms.

 

 

排查到的原因  配置的IP跟host 不对 

错误排查:

  1.     服务器防火墙已关闭,本地telnet连接9092端口没问题
  2.     kafka配置文件 listeners=PLAINTEXT://{内网ip}:9092
  3.     将项目日志级别调制DEBUG 发现启动过程报错  

解决办法  修改IP为正确IP

以上是关于spring boot 整合kafka 报错 Exception thrown when sending a message with key='null' and payload=J的主要内容,如果未能解决你的问题,请参考以下文章

spring boot整合kafka

Kafka学习--spring boot 整合kafka

spring boot+kafka整合(未完待续)

kafka学习Spring Boot 整合 Kafka

Spring Kafka和Spring Boot整合实现消息发送与消费简单案例

知识点16--spring boot整合kafka