I'm writing a Spark (v1.6.0) batch job which reads from a Kafka topic.
For this I can use
createRDD is the right approach for reading a batch from kafka.
To query for info about the latest / earliest available offsets, look at
getEarliestLeaderOffsets. That file was
private, but should be
public in the latest versions of spark.