kafka-spark-consumer (homepage)

Receiver Based Reliable Low Level Kafka-Spark Consumer for Spark Streaming . Built-in Back-Pressure Controller . ZK Based offset Management . WAL Less Recovery . Custom Message Interceptor

@dibbhatt / (6)

This utility will help to pull messages from Kafka using Spark Streaming and have better handling of the Kafka Offsets and failures. This Consumer have implemented a Custom Reliable Receiver which uses low level Kafka Consumer API to fetch messages from Kafka and store every received block in Spark BlockManager. Receiver commit the Kafka offsets of Received blocks once store to Spark BlockManager is successful.
Low Level Consumer API is compatible across Kafka versions 0.8, 0.9 and 0.10 and All Spark Versions
Salient Features of Kafka Spark Consumer 
==================================
-- This Consumer uses Zookeeper for storing the consumed and processed offset for each Kafka partition, which will help to recover in case of failure.
-- This Consumer does not require WAL for recovery from Driver or Executor failures. It has capability to store the processed offset after every Batch interval, in case of any failure, Consumer can start from last Processed offset.
-- This Consumer has inbuilt PID (Proportional , Integral , Derivative ) based Rate Controller for controlling Back-Pressure.
-- This Consumer have capability to use Message Interceptor which can be used to pre-process Kafka messages before writing to Spark Block Manager.
-- This Consumer has now support Kafka Consumer Lag checker tools like ConsumerOffsetChecker
For more details about how to use this consumer , please refer to https://github.com/dibbhatt/kafka-spark-consumer/blob/master/README.md
 


Tags

  • 4|streaming
  • 3|kafka

How to

Include this package in your Spark Applications using:

spark-shell, pyspark, or spark-submit

> $SPARK_HOME/bin/spark-shell --packages dibbhatt:kafka-spark-consumer:1.0.10

sbt

If you use the sbt-spark-package plugin, in your sbt build file, add:

spDependencies += "dibbhatt/kafka-spark-consumer:1.0.10"

Otherwise,

resolvers += "Spark Packages Repo" at "http://dl.bintray.com/spark-packages/maven"

libraryDependencies += "dibbhatt" % "kafka-spark-consumer" % "1.0.10"

Maven

In your pom.xml, add:
<dependencies>
  <!-- list of dependencies -->
  <dependency>
    <groupId>dibbhatt</groupId>
    <artifactId>kafka-spark-consumer</artifactId>
    <version>1.0.10</version>
  </dependency>
</dependencies>
<repositories>
  <!-- list of other repositories -->
  <repository>
    <id>SparkPackagesRepo</id>
    <url>http://dl.bintray.com/spark-packages/maven</url>
  </repository>
</repositories>

Releases

Version: 1.0.10 ( 978cf6 | zip | jar ) / Date: 2017-02-02 / License: Apache-2.0 / Scala version: 2.11

Version: 1.0.9 ( 117f98 | zip | jar ) / Date: 2017-01-25 / License: Apache-2.0 / Scala version: 2.10

Version: 1.0.8 ( 3028f6 | zip | jar ) / Date: 2016-08-25 / License: Apache-2.0 / Scala version: 2.10

Version: 1.0.7 ( e2dd9e | zip | jar ) / Date: 2016-08-25 / License: Apache-2.0 / Scala version: 2.10

Version: 1.0.6 ( 928fe9 | zip | jar ) / Date: 2016-01-07 / License: Apache-2.0 / Scala version: 2.10

Spark Scala/Java API compatibility: 1.0.0 - 54% , 1.1.0 - 55% , 1.2.0 - 81% , 1.3.0 - 88% , 1.4.0 - 99% , 1.5.0 - 99%

Version: 1.0.5 ( 3eeda6 | zip | jar ) / Date: 2015-10-08 / License: Apache-2.0 / Scala version: 2.10

Spark Scala/Java API compatibility: 1.0.0 - 54% , 1.1.0 - 56% , 1.2.0 - 82% , 1.3.0 - 88% , 1.4.0 - 100% , 1.5.0 - 100%

Version: 1.0.4 ( b256e7 | zip | jar ) / Date: 2015-08-26 / License: Apache-2.0 / Scala version: 2.10

Spark Scala/Java API compatibility: 1.0.0 - 54% , 1.1.0 - 56% , 1.2.0 - 82% , 1.3.0 - 88% , 1.4.0 - 100%

Version: 1.0.3 ( aeaf15 | zip | jar ) / Date: 2015-06-10 / License: Apache-2.0 / Scala version: 2.10

Spark Scala/Java API compatibility: 1.0.0 - 64% , 1.1.0 - 66% , 1.2.0 - 100% , 1.3.0 - 99%

Version: 1.0.2 ( 95a4cf | zip | jar ) / Date: 2015-06-02 / License: Apache-2.0 / Scala version: 2.10

Spark Scala/Java API compatibility: 1.0.0 - 64% , 1.1.0 - 66% , 1.2.0 - 100% , 1.3.0 - 99%

Version: 1.0.1 ( cbc500 | zip | jar ) / Date: 2015-04-30 / License: Apache-2.0 / Scala version: 2.10

Spark Scala/Java API compatibility: 1.0.0 - 64% , 1.1.0 - 66% , 1.2.0 - 100% , 1.3.0 - 99%

Version: 1.0.0 ( fc82ea | zip | jar ) / Date: 2015-04-26 / License: Apache-2.0 / Scala version: 2.10

Spark Scala/Java API compatibility: 1.0.0 - 64% , 1.1.0 - 66% , 1.2.0 - 100% , 1.3.0 - 99%