ProgrammerAH

Programmer Guide, Tips and Tutorial

Skip to content

kafka Error: Error while fetching metadata with correlation

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

This entry was posted in Error and tagged Error while fetching metadata with correlation, Kafka Error, ProgrammerAH on 2021-08-27 by Robins.

Post navigation

← [Solved] Vsync Error: this error in animationcontroller in fluent M1 MacBook cannot use pip to install pandas [How to Solve] →

Recent Posts

  • MAFIA: 1- OpenFlow statistics (Counters, Timestamps)(mafia-sdn/p4demos/demos/1-openflow/1.1-statistics/p4src/of.p4)
  • LDSC: Could not open Corces_ATAC_1000Gv3_ldscores/Corces_ATAC.1.1.l2.ldscore[./gz/bz2]
  • Gradle Package Project Lombok Not Working: No serializer found for class com.qbb.User and no properties discovered to create BeanSerializer……
  • [Solved] PCH Warning: header stop not at file scope
  • pymysql Error: File “/usr/local/lib/python2.7/site-packages/PyMySQL-1.0.2-py2.7.egg/pymysql/connections.py”, line 167 SyntaxError: invalid syntax
Proudly powered by WordPress