#!/bin/bash
-IMAGE=juplo/endless-producer:1.0-SNAPSHOT
+IMAGE=juplo/uniform-sticky:1.0-SNAPSHOT
if [ "$1" = "cleanup" ]
then
command: sleep infinity
producer:
- image: juplo/endless-producer:1.0-SNAPSHOT
+ image: juplo/uniform-sticky:1.0-SNAPSHOT
ports:
- 8000:8080
environment:
</parent>
<groupId>de.juplo.kafka</groupId>
- <artifactId>endless-producer</artifactId>
- <name>Endless Producer: a Simple Producer that endlessly writes numbers into a topic</name>
+ <artifactId>uniform-sticky</artifactId>
+ <name>Uniform Sticky: a version of the Endless Producer, that uses uniform-sticky-partitioner</name>
<version>1.0-SNAPSHOT</version>
<dependencies>
props.put("client.id", clientId);
props.put("acks", acks);
props.put("metadata.max.age.ms", "1000");
+ props.put("partitioner.class", "org.apache.kafka.clients.producer.UniformStickyPartitioner");
props.put("key.serializer", StringSerializer.class.getName());
props.put("value.serializer", StringSerializer.class.getName());