码迷,mamicode.com
首页 > 编程语言 > 详细

spring boot 整合kafka 报错 Exception thrown when sending a message with key='null' and payload=JSON to topic proccess_trading_end: TimeoutException: Failed to update metadata after 60000 ms.

时间:2018-06-19 14:01:54      阅读:3748      评论:0      收藏:0      [点我收藏+]

标签:ror   producer   adt   end   int   项目   error   .com   过程   

 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=JSON to topic proccess_trading_end: TimeoutException: Failed to update metadata after 60000 ms.

标签:ror   producer   adt   end   int   项目   error   .com   过程   

原文地址:https://www.cnblogs.com/songanwei/p/9197786.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!