01-broken-setup

This commit is contained in:
2026-01-25 00:43:01 +00:00
parent 9ef3580b8b
commit e2f9468319
4 changed files with 64 additions and 0 deletions
+15
View File
@@ -1 +1,16 @@
learning kafka
# Setup
Take a look at 01-broken-setup. Ideally when you setup, you need to have a meta.properties file in the kafka-data ( /var/lib/kafka/data ) directory. This file is created when Kafka starts for the first time.
```
#
#Sat Jan 24 19:02:17 GMT 2026
cluster.id=5L6g3nShT-eMCtK--X86sw
directory.id=Xsizaw8IS7uzzJrI-zTLMQ
node.id=1
version=1
```
If this file is missing, the docker image will make one. But in case you run multiple brokers, all need to have the same cluster.id. So they can talk to each other. This is known as generate/format Kraft storage.