Master Kafka & Zookeeper Setup in 10 Minutes | No Docker Compose | Step-by-Step Guide
Вставка
- Опубліковано 6 січ 2025
- Learn how to manually set up Zookeeper and Kafka on Docker Desktop without using Docker Compose! This step-by-step guide shows you the exact commands and processes needed to configure and test Kafka producers and consumers in minutes. Perfect for beginners and pros alike, you’ll have Kafka up and running, ready for production or development. 🚀
📌 Topics Covered:
Pulling Kafka & Zookeeper Docker images
Running Zookeeper & Kafka containers
Creating Kafka topics
Producing and consuming messages
Best practices for Kafka setup
This method allows full flexibility without the need for Docker Compose. If you’re working with event-driven systems, this is a must-watch tutorial!
🔔 Like, Subscribe, and Share if you found this helpful, and don’t forget to hit the bell icon for more tutorials!
docker pull zookeeper:latest
docker pull wurstmeister/kafka:latest
docker run -d --name zookeeper -p 2181:2181 zookeeper:latest
docker run -d --name kafka -p 9092:9092 --link zookeeper:zookeeper -e KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181 -e KAFKA_LISTENERS=PLAINTEXT://0.0.0.0:9092 -e KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://localhost:9092 -e KAFKA_BROKER_ID=1 wurstmeister/kafka:latest
docker ps
docker exec -it kafka bash
kafka-topics.sh --create --topic test_topic --bootstrap-server localhost:9092 --replication-factor 1 --partitions 1
kafka-console-producer.sh --topic test_topic --bootstrap-server localhost:9092
kafka-console-consumer.sh --topic test_topic --bootstrap-server localhost:9092 --from-beginning
#Kafka #Zookeeper #DockerDesktop #KafkaProducerConsumer #KafkaSetup #Docker #NoDockerCompose #DevBinayak - Наука та технологія
Great content
Great content! Really informative and helpful. Looking forward to more related videos in the future.
Thankyou
Welcome