Kafka report error
Server.log output:
error when handling request {topics = [indexing]} (Kafka. Server. Kafkaapis)
kafka.admin.adminoperationexception: replication factor: 1 larger than available brokers: 0
Run kafka-console-producer.sh output
WARN Error while fetching metadata with correlation id 0 : {enrichments=LEADER_ NOT_ AVAILABLE} (org.apache.kafka.clients.NetworkClient)
Run kafka-console-consumer.sh to swipe the screen
{metadata.broker.list=node01.bdp:6667, request.timeout.ms=30000, client.id=console-consumer-73407, security.protocol=PLAINTEXT}
The general solution on the Internet points to Kafka. Due to the wrong configuration of server.properties, it is unable to connect to zookeeper correctly. The root cause is that Kafka and zookeeper cannot communicate normally. Repeated restart of Kafka is still invalid
After restarting zookeeper, Kafka is normal