This repository contains the code we wrote during Rock the JVM's Spark Streaming with Scala. Unless explicitly mentioned, the code in this repository is exactly what was caught on camera.
- Java 17+ (Java 21 also supported)
- Scala 2.13
- SBT 1.10+
- Docker and Docker Compose
- IntelliJ IDEA (recommended) with the Scala plugin =======
- Clone the repo or download as zip
- Open with IntelliJ as an SBT project
- In a terminal, navigate to the repo folder and run
docker compose up -dto start the infrastructure containers (Kafka, PostgreSQL, MongoDB)
The docker-compose.yml provides:
- PostgreSQL 16 on port 5432 (user:
docker, password:docker, database:rtjvm) - MongoDB 7 on port 27017 (database:
rtjvm) - Apache Kafka on port 9092 (with Zookeeper on port 2181)
If you have changes to suggest to this repo, either
- submit a GitHub issue
- tell me in the course Q/A forum
- submit a pull request!