opstree/kafka
Apache Kafka is a distributed streaming platform used for building real-time data pipelines and streaming apps. It is horizontally scalable, fault-tolerant, wicked fast, and runs in production in thousands of companies.
The purpose of creating this image was to provide a simple and efficient Kafka image for standalone and cluster mode setup.
The image is available on Dockerhub and Quay and can be pulled from those locations.
shell$ docker pull opstree/kafka:latest $ docker pull quay.io/opstree/kafka:latest
Kafka image supports these environment variables:-
| CONFIG VALUE | DEFAULT VALUE | DESCRIPTION |
|---|---|---|
| KAFKA_LOGS_DIR | /data | Data directory where Kafka will generate the logs |
| KAFKA_BROKER_ID | 1 | Broker id of the Kafka server |
| ZOOKEEPER_SERVERS | - | List of zookeeper servers IP address and port |
| KAFKA_ADVERTISED_LISTENERS | - | Kafka advertisement listener name |
| KAFKA_PORT | 9092 | Port number on which Kafka will run |
For building an image, there is no such extra requirement other than docker, so a simple make command will do the work for you.
shellmake build-image
Kafka image can be run by simply this command, we may need to pass some extra information as an environment variable.
shell$ docker run -itd --name kafka -e KAFKA_BROKER_ID="1" \ -e KAFKA_LOGS_DIR="/data" \ -e ZOOKEEPER_SERVERS="zookeeper:2181" opstree/kafka:latest
We have already have created a docker-compose file for a quickstart setup. The compose file looks like this:-
yamlversion: '2' services: zookeeper: image: opstree/zookeeper:latest ports: - '2181:2181' volumes: - 'zookeeper_data:/data' kafka: image: opstree/kafka:latest ports: - '9092:9092' volumes: - 'kafka_data:/data' environment: - ZOOKEEPER_SERVERS=zookeeper:2181 depends_on: - zookeeper volumes: zookeeper_data: driver: local kafka_data: driver: local
You can up the setup by using make command:-
shellmake setup-standalone
manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务