Skip to content

CSV Processing using Apache Spark with Spring Boot; receive Kafka stream

Notifications You must be signed in to change notification settings

realpacific/spring-spark-csv-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parsing CSV file using Apache Spark with Spring Boot

Reads test.csv file located on /resources and retrieves useful information from it.

Endpoints

Endpoints Description
localhost:8080/per-day Sum of amounts grouped by day
localhost:8080/total Total amount involved in the csv

Expected topic message @ topic "order"

{ 
   "Transaction_date":"1/2/09 6:17",
   "Product":"Product1",
   "Price":1200,
   "Payment_Type":"Mastercard",
   "Name":"carolina",
   "City":"Basildon",
   "State":"England",
   "Country":"United Kingdom",
   "Account_Created":"1/2/09 6:00",
   "Last_Login":"1/2/09 6:08",
   "Latitude":51.5,
   "Longitude":-1.1166667
}

Starting Kafka brokers

  • docker-compose up
  • Conduktor to publish message to topic
  • App is subscribed to topic other

References

About

CSV Processing using Apache Spark with Spring Boot; receive Kafka stream

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages