Git Product home page Git Product logo

spark-kafka-source's People

Contributors

aseigneurin avatar ckoenig avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

spark-kafka-source's Issues

Issue with connecting this stream to elasticsearch

Hi,

First of all, thanks for your blog and code, it's been really helpful.

I am using similar logic to create stream by storing offset and sending kafka messages to elasticsearch using EsSpark.saveJsonToEs API.

However, I am facing one issue if ES cluster is down this API will try to send this message to ES for sometime and then it will throw and exception and will fetch next message from the queue, and this will go on. When ES cluster is up, we are not getting the earlier messages which was not sent as ES was down.

Could you please help me with this ?

Thanks
Akshay

not Serializable

kafkaStream.foreachRDD(rdd => offsetsStore.saveOffsets(rdd))
private val zkClient = new ZkClient(zkHosts, 30000, 30000,ZKStringSerializer) in Object offsetStore but the zkClient can not be Serializabled how it works?

Add license

First of all, thanks for your blog post on how to store the offsets in ZooKeeper. It would be great if you could add some license to your code. That might make it easier for other people to use it. Thanks.

Support multiple partitions

Hi,
I am not sure if this is of interest to all, but it seems to be a general purpose solution. From what I saw while using this library, it does not support multiple partitions. I modified the code to support multiple partitions (and multiple topics) and am willing to submit a PR if that is desirable. Also, before submitting the PR, I wanted to make sure I have not missed out any usage pattern which provides multi partition capability. Attaching the file with the changes. Some of the references are to the files in my code base. If and when I submit the PR, I will make the required modifications
ZookeeperOffsetStore_MultiPartition.txt

Disclaimer: I have tested this for single topic with multiple partitions. Not for multiple topics.

Kafka Topic Repartition Not Supported

It appears that in case repartition will be performed on the Kafka topic, from 3 partitions to 4 partitions for instance, the streaming job will ignore the new partition.
This is because providing fromOffsets parameter to createDirectStream indicates the job to read only from the 3 first partitions, and ignore the 4th one (for new records that might have been produced to it already, and will be produced during the job execution).

I would expect createDirectStream to handle non-indicated partitions (in fromOffsets) in a standard way (read new records), but unfortunately it does not behave like that.

Our application is written in Python, and we are using streaming-kafka-0-8-integration (as version 0.10 does not support python).

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.