Github user jerryshao commented on the pull request:

    https://github.com/apache/spark/pull/557#issuecomment-50703510
  
    I think the main reason is that some times when we feed our test data to 
Kafka, the KafkaReceiver is still starting, after the receiver started, it will 
ignore the previous sent data and read from the end of the queue (because of 
the behavior Kafka 0.8's auto.offset.reset=largest), so previous sent test data 
will never be consumed, and the test will be failed. So the simple way is to 
sleep for several seconds after `ssc.start()` and then feed the data.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to