(To get the latest messages i.e. Realtime streaming)
2. To get all the messages from Topic:
kafka-console-consumer --bootstrap-server localhost:9092 --topic first_topic --from-beginning (it gives all the messages from topic and realtime steam as well)