Giter Site home page Giter Site logo

Comments (2)

dibbhatt avatar dibbhatt commented on June 9, 2024

Hi,
The primary difference is this Consumer is using Kafka Low Level Consumer API whereas Spark-streaming-Kafka package consumer is using Kafka High Level Consumer API.

In Spark 1.1.x the Spark provided High Level Consumer has a data loss issue on Receiver failure, which prompt me to write this consumer.

In Spark 1.2 they have provided a reliable version of High Level Consumer , which solves the data loss issue, but it has other issues related to recovery from failure, it stops intermittently , not available once failed etc. Also using Kafka High Level API itself has issues which you can find here : https://cwiki.apache.org/confluence/display/KAFKA/Consumer+Client+Re-Design

Now this Low Level Consumer is till now is most reliable way to consume from Kafka without any data loss and can recover from any underlying failures ( Spark worker failures, Kafka broker failures , Spark internal BlockManager failures etc). We at Pearson has been using this for months without any downtime.

Just to mention , Spark 1.3 has another version of Reliable Consumer API ( This time they used Low Level API ) and promised to solved the exactly-once semantics of message processing. But this is yet to be tested in production scenarios.

from kafka-spark-consumer.

bzz avatar bzz commented on June 9, 2024

Thank you very much for publishing your work and the detailed explanation!

On Wed, Mar 4, 2015 at 3:12 PM, Dibyendu Bhattacharya <
[email protected]> wrote:

Hi,
The primary difference is this Consumer is using Kafka Low Level Consumer
API whereas Spark-streaming-Kafka package consumer is using Kafka High
Level Consumer API.

In Spark 1.1.x the Spark provided High Level Consumer has a data loss
issue on Receiver failure, which prompt me to write this consumer.

In Spark 1.2 they have provided a reliable version of High Level Consumer
, which solves the data loss issue, but it has other issues related to
recovery from failure, it stops intermittently , not available once failed
etc. Also using Kafka High Level API itself has issues which you can find
here :
https://cwiki.apache.org/confluence/display/KAFKA/Consumer+Client+Re-Design

Now this Low Level Consumer is till now is most reliable way to consume
from Kafka without any data loss and can recover from any underlying
failures ( Spark worker failures, Kafka broker failures , Spark internal
BlockManager failures etc). We at Pearson has been using this for months
without any downtime.

Just to mention , Spark 1.3 has another version of Reliable Consumer API (
This time they used Low Level API ) and promised to solved the exactly-once
semantics of message processing. But this is yet to be tested in production
scenarios.


Reply to this email directly or view it on GitHub
#7 (comment)
.

Kind regards,
Alexander.

from kafka-spark-consumer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.