GithubHelp home page GithubHelp logo

Comments (5)

ewolff avatar ewolff commented on September 9, 2024 1

Thanks. You can get a list of all running docker containers with docker ps:

CONTAINER ID        IMAGE                          COMMAND                  CREATED             STATUS              PORTS                                                NAMES
857aadf7c40e        mskafka_apache                 "/bin/sh -c 'apach..."   9 seconds ago       Up 7 seconds        0.0.0.0:8080->80/tcp                                 mskafka_apache_1
9220cef4f9c0        mskafka_invoicing              "/bin/sh -c '/usr/..."   11 seconds ago      Up 8 seconds        8080/tcp                                             mskafka_invoicing_1
989c84b240a2        mskafka_shipping               "/bin/sh -c '/usr/..."   11 seconds ago      Up 8 seconds        8080/tcp                                             mskafka_shipping_1
aff85f17793f        mskafka_order                  "/bin/sh -c '/usr/..."   11 seconds ago      Up 8 seconds        8080/tcp                                             mskafka_order_1
b1ea3311f031        wurstmeister/kafka:0.10.2.1    "start-kafka.sh"         13 seconds ago      Up 11 seconds                                                            mskafka_kafka_1
c83247820e4d        mskafka_postgres               "docker-entrypoint..."   14 seconds ago      Up 12 seconds       5432/tcp                                             mskafka_postgres_1
a397c26c1947        wurstmeister/zookeeper:3.4.6   "/bin/sh -c '/usr/..."   14 seconds ago      Up 12 seconds       22/tcp, 2888/tcp, 3888/tcp, 0.0.0.0:2181->2181/tcp   mskafka_zookeeper_1

You can see the logs with docker logs <docker-container-name> e.g. docker logs mskafka_zookeeper_1

from microservice-kafka.

tobiasheine avatar tobiasheine commented on September 9, 2024

Great, so apparently the order message cannot be sent to the topic due to a timeout.

Exception thrown when sending a message with key='7created' and payload='com.ewolff.microservice.order.logic.Order@48f9766a[id=7,customer=com.ewolff.microservice.order.custo...' to topic order:

org.apache.kafka.common.errors.TimeoutException: Failed to update metadata after 60000 ms.

from microservice-kafka.

ewolff avatar ewolff commented on September 9, 2024

from microservice-kafka.

ewolff avatar ewolff commented on September 9, 2024

I suspect that Docker does not have enough RAM. If you are running a local Docker installation on Windows or macOS, go to Preferences -> Advanced and make sure memory is set to 4 GB. If you are using Docker Machine use docker-machine create --virtualbox-memory "4096" --driver virtualbox dev.

from microservice-kafka.

ewolff avatar ewolff commented on September 9, 2024

This is actually really a bug. The problem is that the configuration was messed up and therefore the Kafka server was not really accessed. Thanks for pointing this out!

from microservice-kafka.

Related Issues (17)

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.