zookeeper,kafka错误

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

原因:旧版使用--zookeeper 新版已经去掉了这个选项
办法:0.9以后版本启动改为 --bootstrap-server
4.Replication factor: 2 larger than available brokers: 1

原因:副本数超过了broker的数即服务器数
办法:小于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=

posted @ 2019-11-20 15:03  caonw  阅读(3055)  评论(0编辑  收藏  举报