How to setup Apache Kafka locally
HTML-код
- Опубликовано: 29 сен 2024
- How to setup Apache kafka locally. follow the steps and below are the useful links to allow you to setup successfully.
Step 1 - install Kafka (Install the latest Java runtime before installing Kafka)
www.oracle.com....
kafka.apache.o....
Step 2 - setup kafka and configure zookeeper
dataDir = data
listeners=PLAINTEXT://127.0.0.1:9092
Step 3 - Start Kafka
bin/zookeeper-server-start.sh config/zookeeper.properties
bin/kafka-server-start.sh config/server.properties
Step 4 - Create Topics
1. Learn about topics here www.youtube.co....
bin/kafka-topics.sh --create --topic MyFirstKafkaTopic --partitions 1 --replication-factor 1 --bootstrap-server localhost:9092
learn more about kafka topic commands and arguments here: jaceklaskowski...
Step 5 - Start your producer
1. Run this command to start your producer
kafka-console-producer.sh --topic MyFirstKafkaTopic --bootstrap-server localhost:9092
Step 6 - Start your consumer
1. Run this command to start your consumer
kafka-console-consumer.sh --topic MyFirstKafkaTopic --from-beginning --bootstrap-server localhost:9092
Step 7: Feed in or send data through your kafka setup.
All done! - Наука
Great Stuff