from Nexmark
mvn clean package
- Suppose Kafka Server is
192.168.1.180
. Download zookeeper and kafka on the server. - set
dataDir
inapache-zookeeper-3.8.0-bin/conf/zoo.cfg
- set
listeners
andlog.dirs
inkafka_2.12-3.3.1/config/server.properties
- start server
./apache-zookeeper-3.8.0-bin/bin/zkServer.sh start
./kafka_2.12-3.3.1/bin/kafka-server-start.sh ./kafka_2.12-3.3.1/config/server.properties
- show all kafka topics
./kafka_2.12-3.3.1/bin/kafka-topics.sh --bootstrap-server 192.168.1.180:9092 --list
- delete existing one
./kafka_2.12-3.3.1/bin/kafka-topics.sh --delete --bootstrap-server 192.168.1.180:9092 --topic query5_sink
./kafka_2.12-3.3.1/bin/kafka-topics.sh --delete --bootstrap-server 192.168.1.180:9092 --topic query5_src
./kafka_2.12-3.3.1/bin/kafka-topics.sh --create --bootstrap-server 192.168.1.180:9092 --topic query5_src
./kafka_2.12-3.3.1/bin/kafka-topics.sh --create --bootstrap-server 192.168.1.180:9092 --topic query5_sink
--broker 192.168.1.180:9092 --kafka-topic query5_src --ratelist 25000_900000
so it will write source events to kafka.
--broker 192.168.1.180:9092 --src-topic query5_src --sink-topic query5_sink --kafka-group 0