title: Apache Kafka 0.9 Java API Consuming all messages from beginning of topic
body: <p>I need to be able to consume all messages from a topic, from the beginning. Essentially identical to this StackOverflow query, but updated for Kafka 0.9. (There seem to be relatively few 0.9-specific StackOverflow answers).</p>
  
  <p><a href="https://stackoverflow.com/questions/21762406/kafka-high-level-consumer-fetch-all-messages-from-topic-using-java-api-equivale">Kafka High Level Consumer Fetch All Messages From Topic Using Java API (Equivalent to --from-beginning)</a></p>
  
  <p>0.9 has a sufficiently different API that I don't really know where to start. I can do this from the command-line using a provided bash script, but don't know how to move forward.</p>
  
  <p>Could you please provide me the appropriate methods or a small sample script to get me started? Thank you!</p>