在这里插入图片描述

Quick reference

Kafka | openEuler

Current Kafka docker images are built on the openEuler. This repository is free to use and exempted from per-user rate limits.

Apache Kafka is an open-source distributed event streaming platform used by thousands of companies for high-performance data pipelines, streaming analytics, data integration, and mission-critical applications.

Learn more on Kafka website.

Supported tags and respective Dockerfile links

The tag of each kafka docker image is consist of the version of kafka and the version of basic image. The details are as follows

Tags Currently Architectures
3.7.0-oe2203sp3 Apache Kafka server 3.7.0 on openEuler 22.03-LTS-SP3 amd64, arm64

Usage

In this usage, users can select the corresponding {Tag} and container startup options based on their requirements.

  • Pull the openeuler/kafka image from docker

    docker pull openeuler/kafka:{Tag}
    
  • Start a kafka instance

    docker run -d --name my-kafka -p 9092:9092 openeuler/kafka:{Tag}
    

    After the instance my-kafka is started, access the kafka service through http://localhost:9092.
    在这里插入图片描述

  • Container startup options

    Option Description
    -p 9092:9092 Expose Apache Kafka server on localhost:9092.
    -e ZOOKEEPER_HOST=<zookeeper> Hostname for the related Zookeeper instance.
    -e ZOOKEEPER_PORT=2181 Port for the related Zookeeper instance.
    -v /path/to/config/file:/etc/kafka/server.properties Local Kafka configuration file.
    -v kafkaData:/var/lib/kafka "Persist data in a docker volume named kafkaData. " "Make sure that the mount point is consistent with the configuration property logs.dirs.
  • View container running logs

    docker logs -f my-kafka
    
  • To get an interactive shell

    docker exec -it my-kafka /bin/bash
    

Question and answering

If you have any questions or want to use some special features, please submit an issue or a pull request on openeuler-docker-images.

Logo

鲲鹏昇腾开发者社区是面向全社会开放的“联接全球计算开发者,聚合华为+生态”的社区,内容涵盖鲲鹏、昇腾资源,帮助开发者快速获取所需的知识、经验、软件、工具、算力,支撑开发者易学、好用、成功,成为核心开发者。

更多推荐