1.ERROR Exiting Kafka due to fatal exception (kafka.Kafka$)
原因:找不到properties文件,或者配置文件路径指定错误
办法:指定配置文件路径
2.Configured broker.id 130 doesn’t match stored broker.id 0 in meta.properties
原因:单机使用过
办法:删除数据文件重启
3.zookeeper is not a recognized option
Replication factor: 2 larger than available brokers: 1
办法:小于broker数即可
5.
报错:
[2019-12-03 12:44:08,142] WARN Error while fetching metadata with correlation id 479 : {test=LEADER_NOT_AVAILABLE} (org.apache.kafka.clients.NetworkClient)
[2019-12-03 12:44:08,256] WARN Error while fetching metadata with correlation id 480 : {test=LEADER_NOT_AVAILABLE} (org.apache.kafka.clients.NetworkClient)
办法:修改 server.properties 添加
host.name=