Kafka console consumer: How to get only the last N messages from a topic instead of everything from the beginning?
<p>I can do this:</p>

<pre><code>./bin/kafka-avro-console-consumer --zookeeper 10.0.0.225:2181/kafka
--topic myTopic --property schema.registry.url=http://10.0.0.100:8081 
--from-beginning
</code></pre>

<p>But I have too many messages. I would rather only get the last N ones. How can I do that with kafka console consumer?</p>