Skip to content

Commit

Permalink
Bump Spark version to v3.5.3
Browse files Browse the repository at this point in the history
Signed-off-by: Yi Chen <[email protected]>
  • Loading branch information
ChenYi015 committed Nov 1, 2024
1 parent 6d64fa5 commit 4d80123
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 8 deletions.
16 changes: 16 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.bsp/
.git/
.metals/
.vscode/
benchmarks/
charts/
docs/
kubernetes/
target/
terraform/
.dockerignore
.gitignore
.scalafmt.conf
Dockerfile
LICENSE
README.md
26 changes: 20 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,37 @@
ARG SPARK_IMAGE=apache/spark:v3.3.2
ARG SPARK_IMAGE=spark:3.5.3

FROM debian:bullseye-slim as kit-builder
ARG SBT_IMAGE=sbtscala/scala-sbt:eclipse-temurin-jammy-17.0.10_7_1.10.4_2.12.20

ENV GIT_COMMIT_ID "1b7fb7529edae091684201fab142d956d6afd881"
FROM debian:bullseye-slim AS tpcds-kit-builder

ENV GIT_COMMIT_ID=1b7fb7529edae091684201fab142d956d6afd881

WORKDIR /app

RUN set -eux && \
apt-get update && \
apt-get install -y gcc make flex bison byacc git && \
apt-get install -y gcc make flex bison byacc git

RUN set -eux && \
git clone https://github.com/databricks/tpcds-kit.git && \
cd tpcds-kit && \
git checkout ${GIT_COMMIT_ID} && \
cd tools && \
make OS=LINUX

FROM ${SBT_IMAGE} AS benchmark-builder

WORKDIR /app

COPY . .

RUN set -eux && \
sbt assembly

FROM ${SPARK_IMAGE}

COPY --from=kit-builder /app/tpcds-kit/tools /opt/tpcds-kit/tools
COPY --from=tpcds-kit-builder /app/tpcds-kit/tools /opt/tpcds-kit/tools

COPY --from=benchmark-builder /app/target/scala-2.12/*.jar /opt/spark/jars/

COPY target/scala-2.12/spark-tpcds-benchmark-assembly-0.1.jar /opt/spark/jars/
COPY lib /opt/spark/jars/
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
ThisBuild / organization := "com.aliyun.ack"
ThisBuild / version := "0.1"
ThisBuild / scalaVersion := "2.12.18"
ThisBuild / scalaVersion := "2.12.20"

val sparkVersion = "3.3.2"
val sparkVersion = "3.5.3"

lazy val benchmark = (project in file("."))
.settings(
Expand Down

0 comments on commit 4d80123

Please sign in to comment.