9000
/etc/hosts
events
topic with 5 partitions, by running the following command:
jq
to structure the data in the key:payload
structure that Kafka expects:
events__4
are assigned to servers 0 and 1.
The script also returns mappings of partitions to servers: