-
Notifications
You must be signed in to change notification settings - Fork 0
/
kafka-commands.bat
24 lines (17 loc) · 1.04 KB
/
kafka-commands.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
@echo off
:: Start Zookeeper
D:\kafka\bin\windows\zookeeper-server-start.bat D:\kafka\config\zookeeper.properties
:: Start Kafka broker
D:\kafka\bin\windows\kafka-server-start.bat D:\kafka\config\server.properties
:: Start Kafka Connect in standalone mode
D:\kafka\bin\windows\connect-standalone.bat D:\kafka\config\connect-standalone.properties D:\kafka\config\connect-file-sink.properties
:: Stop Zookeeper
D:\kafka\bin\windows\zookeeper-server-stop.bat D:\kafka\config\zookeeper.properties
:: Stop Kafka broker
D:\kafka\bin\windows\kafka-server-stop.bat D:\kafka\config\server.properties
:: Create Kafka topic
D:\kafka\bin\windows\kafka-topics.bat --create --bootstrap-server localhost:9092 --replication-factor 1 --partitions 1 --topic real-time-data
:: Consume from real-time-data topic
D:\kafka\bin\windows\kafka-console-consumer.bat --bootstrap-server localhost:9092 --topic real-time-data
:: Consume from processed-real-time-data topic
D:\kafka\bin\windows\kafka-console-consumer.bat --bootstrap-server localhost:9092 --topic processed-real-time-data