Write a new Kafka application WordCountPerLineApp
(using Kafka Producer and Consumer APIs) that does the following:
input
key -> hello hello world
gives a record with the following value hello -> 2, world -> 1
(and the same key as in the input record)key -> hello hello world
gives two records in the output, i.e. (hello, 2)
and (world, 1
(as (key, value)
)Duration: 30 mins