I wish to read only latest msg in spark streaming using kafka, but it also fetches past data
How to set auto.offset.reset in KafkaUtil for spark
JavaPairReceiverInputDStream<String, String> messages =
KafkaUtils.createStream(jssc, args[0], args[1], topicMap);
how to set the conf to fetching only current message . Please give some example.
Thanks in advance, there is also another thread
But not sufficient, pls help me out. Thanks in advance.