kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Furkan KAMACI <furkankam...@gmail.com>
Subject Kafka Streams Error
Date Wed, 02 Nov 2016 19:13:08 GMT
I use Kafka I count the messages of a topic as follows:

KStream<String, String> longs = builder.stream(Serdes.String(),
Serdes.String(), "qps-input");
KTable<Windowed<String>, Long> longCounts =
                longs.countByKey(TimeWindows.of("qps", 3600 * 1000),

and then I write output to another topic. Result is that:

Numbers which starts from 1 and increase whenever I add something to

My questions:

1) Does it calculate really last hour or everything from the beginning due
you I've set it as earliest?

2) Sometimes it's been reset and numbers starts from 1. What can be the
reason for that?

Kind Regards,

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message