Git Product home page Git Product logo

Comments (3)

aesteve avatar aesteve commented on August 29, 2024

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.

techjourney010 avatar techjourney010 commented on August 29, 2024

Checkout the following article. It can help you to run a Kafka Cluster in KRaft mode.

from cp-all-in-one.

techjourney010 avatar techjourney010 commented on August 29, 2024

I think the issue should be closed.

from cp-all-in-one.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.