Giter Club home page Giter Club logo

Comments (3)

alvincjin avatar alvincjin commented on July 20, 2024 1

Thanks @Crim
The problem is solved. It's my network issue.
Thanks.

from kafka-webview.

Crim avatar Crim commented on July 20, 2024

So to be completely upfront -- I'm definitely not an expert with Docker. My gut feeling is perhaps the network setup between your Docker instance and the host EC2 instance are not configured to allow them to talk to each other.

Locally I use a mac laptop. Running the Docker image and Kafka/Zookeeper on the host OS, I had to configure my broker hostname in Kafka-Webview as 'docker.for.mac.localhost' which is a special hostname reserved for the host OS network address. Running on Linux/EC2 you mileage may vary here as that specific hostname appears to only be for the OSX version of Docker.

Additionally I had to ensure that the Kafka service was listening/bound to the appropriate networking device to allow inbound connections accessible to the Docker instance.

from kafka-webview.

Crim avatar Crim commented on July 20, 2024

Essentially googling for "docker how to connect to service on host" may be what you're looking to do. Keep in mind that Kafka complicates matters a bit in that you can configure/override the hostname/address it advertises.

For reference this is how I had the listeners property configured for my kafka brokers that allowed this to work for me. I had no explicitly defined advertised.host.name or advertised.listeners properties.

listeners=PLAINTEXT://:9092,SSL://:9093

Again your mileage may vary here. Hope this helps!

from kafka-webview.

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.