Error while executing topic command : Replication factor: 3 larger than available brokers: 2.

主要错误信息是:
Error while executing topic command : Replication factor: 3 larger than available brokers: 2.
[2020-02-21 20:56:18,333] ERROR org.apache.kafka.common.errors.InvalidReplicationFactorException: Replication factor: 3 larger than available brokers: 2.
这里的意思是你集群的kafka节点数小于你所创建的topic的副本节点数,

解决方式:
1,把你设置的节点数小于或者等于集群中的kafka节点数
2,就是提高集群中的kafka节点数

你可能感兴趣的:(Error while executing topic command : Replication factor: 3 larger than available brokers: 2.)