Closed ferodss closed 8 years ago
Hi, thanks for posting the full gist, that's very useful for debugging!
This all looks good, I think it's just that the Console.ReadLine() to keep it alive is a bit too late. By the point where it reaches the ReadLine it has already shut down the consumer because it exited the using (var consumer ...) {}
scope.
Try putting the ReadLine directly after Console.WriteLine($"Subscribed to: [{string.Join(", ", consumer.Subscription)}]");
.
It works! My bad.
Thanks man!
I'm using Kafka 0.10 and trying to create a consumer app but when I run the app my consumer is disconected from broker. When I run the console consumer that came with kafka it works.
On Kafka config I have
advertised.listeners=PLAINTEXT://localhost:9092
Seems like the consumer is receiving wrong offset:
On this gist you can see the full consumer log and the code.
Kafka log
Am I missing something?