Back to Browse

Apache Kafka Setup on Windows Machine #kafka #apachekafka

4.6K views
Jun 3, 2023
7:10

Kafka Installation Step-By-Step Guide Step 1: Install Java : set JAVA_HOME and PATH variable Step 2: Download and Extract Kafka (https://kafka.apache.org/downloads) e.g. C:\kafka Step 3: Configure the following properties in the server.properties file: listeners=PLAINTEXT://localhost:9092 log.dirs=C:/kafka/logs Configure the following properties in the zookeeper.properties file: dataDir=C:/kafka/zookeeper-tmp-data Step 4: Using below command - Test kafka setup start kafka servers C:\kafka\bin\windows\zookeeper-server-start.bat config\zookeeper.properties C:\kafka\bin\windows\kafka-server-start.bat config\server.properties create new topic C:\kafka\bin\windows\kafka-topics.bat --create --topic quickstrt-event --bootstrap-server localhost:9092 post message into kafka topic C:\kafka\bin\windows\kafka-console-producer.bat --topic quickstrt-event --bootstrap-server localhost:9092 consume message from kafka topic C:\kafka\bin\windows\kafka-console-consumer.bat --topic quickstrt-event --from-beginning --bootstrap-server localhost:9092

Download

0 formats

No download links available.

Apache Kafka Setup on Windows Machine #kafka #apachekafka | NatokHD