-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Move the migrate.sc to sync directory - Add Dockerfile to build Spark container with drivers The idea here is to build an image that has the drivers and script already packaged, ready for immediate use in a workflow.
- Loading branch information
Showing
4 changed files
with
42 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM spark:3.4.1-scala | ||
|
||
ENV PATH="$PATH:/opt/spark/bin" | ||
|
||
# Configure Spark and cache the database drivers | ||
RUN mkdir /opt/spark/conf | ||
COPY spark-defaults.conf /opt/spark/conf | ||
RUN echo :quit | spark-shell | ||
|
||
COPY sync.sc . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
spark.jars.ivy /opt/spark/jars | ||
spark.jars.packages com.oracle.database.jdbc:ojdbc11:21.14.0.0,org.mariadb.jdbc:mariadb-java-client:3.4.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters