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 / (7)

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 to fetch messages from Kafka and store every received block in Spark BlockManager. This consumer can commit the offsets of processed batch after each Spark Streaming batch is completed.

Low Level Consumer API is compatible across Kafka versions 0.8, 0.9,  0.10, 0.11 and All Spark Versions including the latest Spark 2.2.0
Salient Features of Kafka Spark Consumer 
==================================
-- This Consumer uses Zookeeper for storing processed offset for each Kafka partition, which will help to recover in case of failure.
--Support for Kafka Security
-- This Consumer does not require WAL for recovery from Driver or Executor failures.
-- 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.14

sbt

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

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

Otherwise,

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

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

Maven

In your pom.xml, add:
<dependencies>
  <!-- list of dependencies -->
  <dependency>
    <groupId>dibbhatt</groupId>
    <artifactId>kafka-spark-consumer</artifactId>
    <version>1.0.14</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.14 ( fdba55 | zip | jar ) / Date: 2017-12-03 / License: Apache-2.0 / Scala version: 2.11

Version: 1.0.13 ( 2688a2 | zip | jar ) / Date: 2017-11-30 / License: Apache-2.0 / Scala version: 2.11

Version: 1.0.12 ( 6284f8 | zip | jar ) / Date: 2017-07-27 / License: Apache-2.0 / Scala version: 2.11

Version: 1.0.11 ( 26d02b | zip | jar ) / Date: 2017-07-18 / License: Apache-2.0 / Scala version: 2.11

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%