</parent>
<groupId>de.juplo.kafka.wordcount</groupId>
<artifactId>splitter</artifactId>
- <version>1.1.0</version>
+ <version>1.1.1</version>
<name>Wordcount-Splitter</name>
<description>Stream-processor of the multi-user wordcount-example, that splits the sentences up into single words</description>
<properties>
JsonSerde<Recording> recordSerde =
new JsonSerde<>(Recording.class).ignoreTypeHeaders();
- JsonSerde<Word> wordSerde =
- new JsonSerde<>(Word.class).noTypeInfo();
KStream<String, Recording> source = builder.stream(
properties.getInputTopic(),
.stream(PATTERN.split(recording.getSentence()))
.map(word -> Word.of(recording.getUser(), word))
.toList())
- .to(properties.getOutputTopic(), Produced.with(Serdes.String(), wordSerde));
+ .to(properties.getOutputTopic());
Properties props = new Properties();
props.put(StreamsConfig.APPLICATION_ID_CONFIG, properties.getApplicationId());
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<configuration>
+ <include resource="org/springframework/boot/logging/logback/base.xml" />
+ <logger name="de.juplo.kafka.wordcount.splitter" level="DEBUG" />
+</configuration>