Skip to content

Example for Data Reading from and Writing to from Kafka Topic using Apache Spark DataFrame and DataSet

Notifications You must be signed in to change notification settings

akashsethi24/Spark-Kafka-Example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spark-Kafka-Stream-Example

Kafka Custom Serializable and Decoder

This repo contains the Example of Spark using Apache Kafka.

We are Feeding Case class Object to Apache Kafka via Kafka Producer and Fetching the same via Spark Streaming and printing the Case class Object in String Form.

Flow :-

    CustomCaseClass(1, "Sample Name") -> Apache Kafka [Producer]
    Apache Kafka [Consumer] -> Spark Streaming -> CustomCaseClass(1, "Sample Name") -> Show.
We Are Using :-
    Spark Version :- 2.2.0
    Scala Version :- 2.11.8
    Lift Json Version :- 2.6.2

For Custom Topic Streaming Code is placed under custom Package

We are using Custom Serilizer and DeSerializer for Custom Case class

Recently Added

Implicitly Produce Kafka Topic using DataFrame

Implicitly Consume Kafka Topic using Spark Streaming

Soemthing's wrong then raise an issue.
Happy Coding.

Releases

No releases published

Packages

No packages published

Languages