When sending messages to Kafka
as producer
, an error is reported
There is no leader for this topic-partition as we are in the middle of a leadership election
The specific reason is not very clear, but the solution issue has been found. According to the answer below issue
, the following modifications have been made:
The original Kafka is deleted_ BROKER_ ID: 1
when starting docker compose
, add -- no recreate
at the end of the command. The official explanation is to ensure that the container is not recreated, so as to retain its name and ID
If you still can’t solve the problem after modifying the above configuration, delete the Kafka
container, re run docker compose up -- no recreate
, and check the #516
Read More:
- Kafka Error while fetching metadata with correlation id 1 : {alarmHis=LEADER_NOT_AVAILABLE}
- How to Solve canal & MYSQL or “Kafka cannot consume data” Error
- [Solved] kafka Startup Error: ERROR Shutdown broker because all log dirs in /…/kafka/logs have failed (kafka.log.LogManager)
- [Solved] Win 10 Kafka error: failed to construct Kafka consumer
- Kafka executes the script to create topic error: error org apache. kafka. common. errors. InvalidReplicationFactorException: Replicati
- [Solved] Kafka Error: kafka.common.InconsistentClusterIdException…
- Kafka error: ERROR There was an error in one of the threads during logs loading: java.lang.NumberFormatException: For input string: “derby” (kafka.log.LogManager)
- How to Solve k8s Nodal issues: /sys/fs/cgroup/memory/docker: no space left on device\““: unknown.
- How to Solve ModuleNotFoundError: No module named ‘_bz2‘
- How to Solve STM32 no flash error
- How to Solve mount error(6): No such device or address
- [Solved] Kafka Start Log Error: WARN Found a corrupted index file due to requirement failed: Corrupt index found
- How to Solve Docker failed to initialize Error
- [Solved] Kafka Error: InvalidReplicationFactorException: Replication factor:
- kafka Error: Error while fetching metadata with correlation
- How to Solve Doris dynamic partition table routineload Error
- [Solved] Kafka2.3.0 Error: Timeout of 60000ms expired before the position for partition could be determined
- Mac M1 Start Virtual Machine Centos8 with PD to install Kafka error: Error: VM option ‘UseG1GC‘
- How to Solve kubelet starts error (k8s Cluster Restarted)
- How to Solve using stm32f4 to drive PS2 error