Search
๐ŸŽฝ

Kafka Setup ( Windows Docker )

Windows์— ์„ค์น˜๋œ Docker์— Kafka๋ฅผ ์„ค์ •ํ•˜๊ธฐ.

โ€ข
docker-compose.yml
โ—ฆ
Apache Kafka container (Zookeeper built-in)
โ—ฆ
Kafka-Manager container
version: "2" services: kafkaserver: image: "spotify/kafka:latest" container_name: kafka hostname: kafkaserver networks: - kafkanet ports: - 2181:2181 - 9092:9092 environment: ADVERTISED_HOST: kafkaserver ADVERTISED_PORT: 9092 kafka_manager: image: "mzagar/kafka-manager-docker:1.3.3.4" container_name: kafkamanager networks: - kafkanet ports: - 9000:9000 links: - kafkaserver environment: ZK_HOSTS: "kafkaserver:2181" networks: kafkanet: driver: bridge
YAML
๋ณต์‚ฌ

Kafka-Manager UI๋ฅผ ์ด์šฉํ•˜์—ฌ kafka topic ์ƒ์„ฑํ•˜๊ธฐ

1.
์œ„์˜ docker-compose๊ฐ€ ์ •์ƒ์ ์œผ๋กœ ์˜ฌ๋ผ์™”๋‹ค๋ฉด ์•„๋ž˜ ์ฃผ์†Œ๋กœ ์ ‘์†
http://localhost:9000
2.
Cluster ๋งŒ๋“ค๊ธฐ
a.
Add Cluster๋ฅผ ์„ ํƒ
b.
๋น ๋ฅธ ์…‹์—…
โ€ข
Cluster Name - ์›ํ•˜๋Š” ๊ฒƒ
โ€ข
Cluster Zookeeper Hosts - hostname of zookeeper (docker-compose.yml ํŒŒ์ผ์— ๊ตฌ์„ฑ๋œ kafkaserver ์œ„์˜ ymlํŒŒ์ผ์— ์˜ํ•˜๋ฉด ์•„๋ž˜ ์Šคํฌ๋ฆฐ์ƒท๊ณผ ๊ฐ™์ด ์„ค์ •
โ€ข
Kafka Version 0.10.1.0 - ์ •ํ™•ํ•œ ์ •๋ณด๋Š” ํ™•์ธ ํ›„ ๊ธฐ์ž…ํ•„์š”
c.
Topic ๋งŒ๋“ค๊ธฐ

Kafka C++ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ

Kafka์— ๋Œ€ํ•ด์„œ