Support Questions
Find answers, ask questions, and share your expertise

Kafka produce count and kafka consumer count is not equal..?

Highlighted

Kafka produce count and kafka consumer count is not equal..?

Explorer

Hi All,

I am using java producer to produce messages and Scala Consumer to consume messages from producer, with this i am able to produce correct no.of messages from hdfs and unable to consume all the messages , Here is my java producer and consumer code please find attached.scalaconsumer.txt

please let me know what is the reason.

Thanks in advance.

1 REPLY 1
Highlighted

Re: Kafka produce count and kafka consumer count is not equal..?

@AnjiReddy Anumolu

Consumer will count the messages "Produced" during the same timeframe. Are the StartDateTime and EndDateTime identical for Producer and Consumer counts? How do you guarantee that?

Don't have an account?