GithubHelp home page GithubHelp logo

Comments (1)

dspeterson avatar dspeterson commented on September 1, 2024

I assume that the section of bruce's config file specifies broker_host_1 port 9092, since bruce successfully connects to that broker and gets metadata. The metadata response gives the hostnames and ports of all brokers, which is how bruce knows which brokers to connect to for message transmission. The following log message:

bruce[21788]: Connector thread 21793 (index 0 broker 1) connecting to host localhost port 9092

suggests that according to the metadata response, one of the brokers is running on localhost port 9092 (clearly wrong), so bruce tries unsuccessfully to connect to a broker running locally. That suggests that your Kafka cluster is misconfigured. Take a look at the server.properties file for each broker and verify that everything is correct. In particular, take a look at the the settings for host.name, advertised.host.name, and advertised.port. I suspect that one or more of these settings are wrong. In my broker config, all 3 settings are commented out. For troubleshooting purposes, bruce comes with a program called mdrequest, which connects to a broker, sends a metadata request, and writes JSON to standard output showing the response. This may help. You can build and run it as follows, from the root of bruce's source tree:

./build_all -v
out/debug/bruce/kafka_proto/v0/mdrequest --broker_host broker_host_1 --broker_port 9092

Let me know if you still have problems.

from bruce.

Related Issues (11)

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.