kafka报错

来源:互联网 发布:签证 生物识别数据 编辑:程序博客网 时间:2024/06/11 15:02

java.lang.IllegalArgumentException: requirement failed

答:


WARN Property topic is not valid (kafka.utils.VerifiableProperties)

答: 在my-server.properties文件中,启用host.name,如下:

[plain] view plain copy
 print?
  1. # Hostname the broker will bind to. If not set, the server will bind to all interfaces                                                                   
  2. host.name=10.149.11.147  
 

向 kafka 发送消息的时候出现 LeaderNotAvailableException 异常?

 WARN Error while fetching metadata [{TopicMetadata for topic my-replicated-topic ->

答:是因为主机名映射的ip错误,导致节点之间无法通信。