Comments (3)
I think I faced this before yes.
In /tmp/update_run.sh
you might have some random cluster id or something like that?
Like the random-uuid
here
When you're using two brokers, you can't use a random cluster_id for each of the brokers (that leads to the error you're seeing: "inconsistent cluster id"), in that case, you'd need to use a "fixed" cluster id of your choice for both brokers.
Be careful though, that the cluster id must be properly formatted. For example here I used one I picked from the docs iirc.
If you want to use your own valid cluster_id, you can try:
docker run --rm -it --entrypoint /bin/kafka-storage confluentinc/cp-kafka:7.2.1 random-uuid
and change update-run.sh
to use it (as I linked before)
Works on my machine™
Alternatively, you could refer to an environment variable in update_run.sh
(like CLUSTER_ID
or KAFKA_CLUSTER_ID
or something) and set it in your docker-compose.yml
along with other env variables there. Whatever you prefer.
from cp-all-in-one.
Checkout the following article. It can help you to run a Kafka Cluster in KRaft mode.
from cp-all-in-one.
I think the issue should be closed.
from cp-all-in-one.
Related Issues (20)
- Add ksqlDB-server and the CLI into KRaft cp-all-in-one-kraft HOT 2
- Kraft mode docker wont start HOT 1
- No Connect Clusters Found HOT 1
- docker-compose file does not contain volumes spec HOT 5
- How to run the contents of update_run and /etc/confluent/docker/run inline without file HOT 1
- README for cp-all-in-one-community has wrong. link HOT 1
- KRaft - Kafka nodes continuously generating metadata deltas from snapshots HOT 4
- image given in cp-all-in-one-kraft is not found, docker-compose up fails
- Can't connect/consume from a different machine on the same network HOT 1
- enable.auto.commit HOT 1
- Docker Compose - ERROR Broker HOT 7
- cp-all-in-one-cloud Connect admin calls timing out
- Set the base path URL in Confluent's Control Center (for reverse proxy).
- Fix for start cp-all-in-one-kraft kafka without zookeeper
- Port 2181 bind error on Zookeeper startup
- Docker compose fails on Fedora 35 with podman
- Starting environment fails on Mac M1 HOT 1
- Containers stop with Exit code 1 HOT 1
- Control-Center not able to connect to Kafka-Connect cluster HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cp-all-in-one.