How to get starting offset and ending offset of a kafka batch in Spark Streaming (Java)
In spark streaming (using Java), I am trying to print the start offset and and last offset of a specific batch taken from Kafka along with the batch related metrics (like processingStartTime
, processingEndTime
etc.).