Git Product home page Git Product logo

kafka-docker's Introduction

Running a Local Kafka Broker

To run a single instance of Kafka broker on your local machine. Please follow the belong steps.

This guide will assume Kafka version 2.5.1

1. Pull the repo

git clone ssh://[email protected]/JSchillinger/kafka-docker.git

2. Modify docker-compose.yml

Modify docker-compose.yml and change the value of KAFKA_ADVERTISED_HOST_NAME to your local IP address. For example if you local machine IP address is 10.11.0.100

KAFKA_ADVERTISED_HOST_NAME: 10.11.0.100

3. Boot Docker up with docker-compose

Run/Boot container up via docker-compose

docker-compose up

Once this is booted up you should have access to the following

4. Usage of the Kafka broker

In the application that needs to connect to Kafka, to redirect it to use the local instance, add the following as environment variable

-Dkafka.bootstrap.server=localhost:9092
-Dkafka.replication.factor=1
-Dkafka.isr.config.value=1

kafka-docker's People

Contributors

allenfang avatar andreimc avatar angeloparchitelli avatar bobrik avatar chris-zen avatar crogers avatar dblandin avatar domkck avatar dsevilla avatar edwardmlyte avatar eliasdorneles avatar extemporalgenome avatar filiptepper avatar glau2 avatar grove avatar harlantwood avatar jdavisonc avatar jiminhsieh avatar jrpilat avatar jwroblewski avatar jzakrzeski avatar kunickiaj avatar kyleboyle avatar markrebuck avatar mdlavin avatar prabhuinbarajan avatar sscaling avatar towhans avatar varju avatar wurstmeister avatar

Watchers

 avatar

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.