I am trying to run kafka. I am seeing zookeeper and kafka brokers are running. I could create topics. I ran zkCli to get broker id's and it shows [0.1] as broker ids. I ran kafka producer and it runs well. I tried consumer to consume msg from producer(just in command line). The consumer neither shows error nor consume msgs. Here I have attached the consumer console page. Please let me know what the issue is.. Thanks.consumererror.png @amankumbare , @Frank Lu @Ravi Mutyala
can you share your command for your consumer?
bin/kafka-console-consumer.sh --zookeeper yourZookeeperHost:2181 --topic yourTopicName --from-beginning
Consumer will consume messages if you are producing messages in the same topic at the same time.
If you want to see the messages which were produced earlier you will need to pass --from-beginning flag to consumer command