Kafka KRaft 无 ZooKeeper 集群配置要点关键参数(`server.properties`)`process.roles=broker,controller``node.id=1``controller.quorum.voters=1@localhost:9093,2@localhost:9094,3@localhost:9095``listeners=PLAINTEXT://:9092,CONTROLLER://:9093``log.dir=/var/lib/kafka`初始化与启动(示意)kafka-storage.sh format -t $(uuidgen) -c server.properties kafka-server-start.sh server.properties 总结KRaft 将控制面合并进 Kafka 自身,通过正确设置角色、节点与选举参数,可构建无 ZooKeeper 的高可用集群。

发表评论 取消回复