I have spark streaming application which runs End of day and consumes kafka events send by the upstream application.Currently upstream application keeps pushing new data the whole day and my consumer ends up consuming it. I want to limit the events consumed based on a cutoff say 6pm daily.Is there a way to specify a cut off to limit the events consumed based on a cutoff say kafka event timestamp or something .Below is the consumer code
KafkaUtils.createDirectStream[String, String](ssc, PreferConsistent, Subscribe[String, String](topicSet, kafkaParams))