-
unzip the database dump file at
docker/lahman2016.zip
-
build docker MySQL container with test data
cd docker docker build -t mysql-test .
-
run detached database container
docker run -d --name mysql-test -e MYSQL_ROOT_PASSWORD=password -p 3306:3306 mysql-test
-
compile project
from root directory:
sbt assembly
jar file will be located at target/scala-2.13/big-data-engineer-hw-assembly-0.1.0-SNAPSHOT.jar
-
run spark submit
copy jar to desired location and run spark-submit:
spark-submit big-data-engineer-hw-assembly-0.1.0-SNAPSHOT.jar
after running
output
folder is created and the results will appear there
-
Notifications
You must be signed in to change notification settings - Fork 0
megaurko/spark-batch-examples
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published