Kafka Failed to Acquire Lock on File .lock: How to Fix It
Kafka broker won't start: 'Failed to acquire lock on file .lock ... A Kafka instance in another process is using this directory.' Why it happens and how to fix it.
Kafka broker won't start: 'Failed to acquire lock on file .lock ... A Kafka instance in another process is using this directory.' Why it happens and how to fix it.
Fix kafka.common.InconsistentClusterIdException: Cluster ID doesn't match stored clusterId in meta.properties — the Docker volume cause and the real fix.
Kafka throws NotControllerException (code 41) when an admin request hits a broker that isn't the active controller. Here's the mechanism and the real fix.
Fix Kafka's InvalidReplicationFactorException — "Replication factor: 3 larger than available brokers: 1" — in Docker and single-broker dev setups fast.
Kafka ListenerNotFoundException and 'leader brokers without a matching listener' explained: why the leader lacks the listener, how to reproduce, and the fix.