springboot整合kafka,收不到消息,日志输出dead for group解决方法

项目启动以后收不到Kafka发出的消息,日志输出类似:
INFO  [org.springframework.kafka.KafkaListenerEndpointContainer#1-7-C-1] org.apache.kafka.clients.consumer.internals.AbstractCoordinator [600] -| Marking the coordinator hdp1.ambari:6668 JPCDH2:9092 (id: 2147483371 rack: null) dead for group hiveconns

解决方法:

第一种:修改Kafka服务端配置,将所有的机器名修改为IP地址;

第二种:本地配置hosts文件映射机器名,Win10 在C:WindowsSystem32driversetc;

10.101.x.x        hdp1.ambari
 
原文地址:https://www.cnblogs.com/changxy-codest/p/13083702.html