https://github.com/efjerryyang/kafka-spark-playground
https://github.com/efjerryyang/kafka-spark-playground
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/efjerryyang/kafka-spark-playground
- Owner: efJerryYang
- Created: 2024-07-24T22:13:59.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-24T22:52:28.000Z (almost 2 years ago)
- Last Synced: 2025-02-03T23:41:27.095Z (over 1 year ago)
- Language: Java
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Notice:
1. `mvn spring-boot:run` to start the application.
2. make sure you have kafka and mongodb running.
Dependencies:
1. `Spring Boot` 3.x would use `jakarta` instead of `javax`, however, only `Spark` 4.0+ will support this, so the `Spark` package is preview version.
2. The `Spring Boot` 3.x would require `Servlet API` 6.0+, causing the `Spark` crash due to the removal of `jakarta.servlet.SingleThreadModel` in `Servlet API` from 6.0+ after 20 years of deprecation.
3. Workaround: add a 5.0.0 version of `jakarta.servlet-api` explicitly while making it `provided` scope to avoid conflicts with `Spring Boot`'s dependencies.