I am a beginner in Kafka and I am trying to read the data from a Kafka topic using spark in scala.
Kafka topic
spark
scala
My main function is: