Giter Club home page Giter Club logo

kafka-without-zookeeper's Introduction

You can get image via Docker Hub.

https://hub.docker.com/r/kazukima/kafka-without-zookeeper/tags

docker run -p 9092:9092 --rm -it kazukima/kafka-without-zookeeper:latest

kafka-without-zookeeper

https://hub.docker.com/r/kazukima/kafka-without-zookeeper/tags

Dockerfile for runs kafka without zookeeper.

Many software build top of Apache Kafka. Creating sandbox Kafka cluster for try to those software is boring work.

This image aims for testing with Kafka easily. If you try to Kafka related software,

How to use

Thanks to KIP-500, now Kafka runs single process.

Simple run

Following one-line start kafka on localmachine, broker advertising name is localhost.

docker run -p 9092:9092 --rm -it kazukima/kafka-without-zookeeper:latest

You can create topic by following command.

./kafka-topics.sh --bootstrap-server=localhost:9092 --create --topic new_name

~

Created topic new_name.

docker-compose

docker-compose example is follows.

---
version: '2'
services:
  kafka:
    image: kazukima/kafka-without-zookeeper:latest
    hostname: kafka
    container_name: kafka
    ports:
      - "9092:9092"
      - "9101:9101"
    environment:
      KAFKA_ADVERTISED_HOSTNAME: kafka

Configuration

You should set KAFKA_ADVERTISED_HOSTNAME if you want to connect kafka from other host/container.

Default value is localhost and only

Reference

kafka-without-zookeeper's People

Contributors

kazuki-ma avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

johnandfu

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.