100 Days of Code with Apache Kafka

I started today Day 1 activity while i was running into my local machine icant see any events.

java -cp build/libs/kafka-java-getting-started-0.0.1.jar examples.ProducerExample getting-started.properties

java -cp build/libs/kafka-java-getting-started-0.0.1.jar examples.ConsumerExample getting-started.properties

Could you please help me on this.

You’ll need to share your code. But you should start the consumer before the producer.

Otherwise, you’ll have to ensure auto.offset.reset is set to earliest and your producer closes/flushes before your app stops