module
Version:
v0.0.0-...-28145eb
Opens a new window with list of versions in this module.
Published: Mar 6, 2022
License: MIT
Opens a new window with license information.
README
¶
go-kafka-example
本地Docker搭建Kafka服务器
docker pull bitnami/kafka:latest
docker pull bitnami/zookeeper:latest
docker run -d \
--name zookeeper-test \
-p 2181:2181 \
-e ALLOW_ANONYMOUS_LOGIN=yes \
bitnami/zookeeper:latest
docker run -d \
--name kafka-standalone \
--link zookeeper-test \
-p 9092:9092 \
-v /home/data/kafka:/bitnami/kafka \
-e KAFKA_BROKER_ID=1 \
-e KAFKA_LISTENERS=PLAINTEXT://:9092 \
-e KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://127.0.0.1:9092 \
-e KAFKA_ZOOKEEPER_CONNECT=zookeeper-test:2181 \
-e ALLOW_PLAINTEXT_LISTENER=yes \
--user root \
bitnami/kafka:latest
Kafka Golang客户端
Kafka 客户端管理工具
参考资料
Directories
¶
Click to show internal directories.
Click to hide internal directories.