Im having alot of difficulty migrating my zookeeper cluster to kraft.
Im currently stuck on stage 5 of the process : https://docs.confluent.io/platform/current/installation/migrate-zk-kraft.html#step-1-retrieve-the-cluster-id
In stage 4 – I’ve started Kafka with the necessary changes. Ive got a systemD service pointed to my controller file. The service starts up and is healthy but it’s not finding any nodes.
My controller file from the first node (IP 1.1.1.1) All other nodes replicate this config.
process.roles=controller
node.id=1
controller.quorum.voters=1@localhost:9093,[email protected]:9093,[email protected]:9093
controller.listener.names=CONTROLLER
listeners=CONTROLLER://localhost:9093
# Enable the migration
zookeeper.metadata.migration.enable=true
# ZooKeeper client configuration
zookeeper.connect=zookeeper.service.consul:2181/kafka-cluster
# Enable migrations for cluster linking
confluent.cluster.link.metadata.topic.enable=true
Error:
[2024-08-15 06:31:44,904] WARN [RaftManager id=3] Connection to node 2 (kafka-node-2.man-1.company.env/1.1.1.2:9093) could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)
My current server.properties file:
broker.id=1
listeners=SASL_PLAINTEXT://localhost:9092
advertised.listeners=SASL_PLAINTEXT://localhost:9092
listener.security.protocol.map=SASL_PLAINTEXT:SASL_PLAINTEXT,CONTROLLER:SASL_PLAINTEXT
port=9092
# Set the IBP
inter.broker.protocol.version=3.6
# Enable the migration
zookeeper.metadata.migration.enable=true
# Cluster linking metadata topic enabled
confluent.cluster.link.metadata.topic.enable=true
# ZooKeeper client configuration
zookeeper.connect=zookeeper.service.consul:2181/kafka-cluster
# KRaft controller quorum configuration
controller.quorum.voters=1@localhost:9093,[email protected]:9093,[email protected]:9093
controller.listener.names=CONTROLLER
My zookeeper server.properties config has: security.inter.broker.protocol=SASL_PLAINTEXT and listeners=SASL_PLAINTEXT://1.1.1.1:9092 (first node)
What am i doing wrong?