GitHub user zsxwing opened a pull request:

    https://github.com/apache/spark/pull/15397

    [SPARK-17834][SQL]Fetch the earliest offsets manually in KafkaSource 
instead of counting on KafkaConsumer

    ## What changes were proposed in this pull request?
    
    Because `KafkaConsumer.poll(0)` may update the partition offsets, this PR 
just calls `seekToBeginning` to manually set the earliest offsets for the 
KafkaSource initial offsets.
    
    ## How was this patch tested?
    
    Existing tests.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/zsxwing/spark SPARK-17834

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/15397.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #15397
    
----
commit 95a0c96f040530f5eec270a2b53b46d195a94b8c
Author: Shixiong Zhu <[email protected]>
Date:   2016-10-07T23:47:15Z

    Fetch the earliest offsets manually in KafkaSource instead of counting on 
KafkaConsumer

----


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to