-
Notifications
You must be signed in to change notification settings - Fork 0
Kafka
Charlie edited this page Jul 16, 2020
·
7 revisions
(With an emphasis on fun...and another emphasis on mental)
-
Each consumer in a group can be assigned [0 -> p] partitions
-
Each partition can only be assigned to a single consumer at a time
-
partition -> consumer assignment is configurable
-
Provides automatic load balancing of partitions and consumers in a group
./kafka-console-producer.sh --broker-list localhost:9092 \
--topic my_topic \
--property "parse.key=true" --property "key.separator=:" < input.txt
./kafka-run-class.sh kafka.tools.GetOffsetShell --broker-list localhost:9092 --topic my_topic --time -2