Skip to content

Commit

Permalink
Upgrade to Spark 3.5.4
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Salway <[email protected]>
  • Loading branch information
jacobsalway committed Jan 9, 2025
1 parent 92deff0 commit f9fd865
Show file tree
Hide file tree
Showing 18 changed files with 47 additions and 46 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# limitations under the License.
#

ARG SPARK_IMAGE=spark:3.5.3
ARG SPARK_IMAGE=spark:3.5.4

FROM golang:1.23.1 AS builder

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ The following table lists the most recent few versions of the operator.

| Operator Version | API Version | Kubernetes Version | Base Spark Version |
|-----------------------|-------------|--------------------|--------------------|
| `v2.1.0` | `v1beta2` | 1.16+ | `3.5.3` |
| `v2.0.x` | `v1beta2` | 1.16+ | `3.5.2` |
| `v1beta2-1.6.x-3.5.0` | `v1beta2` | 1.16+ | `3.5.0` |
| `v1beta2-1.5.x-3.5.0` | `v1beta2` | 1.16+ | `3.5.0` |
Expand Down
8 changes: 4 additions & 4 deletions config/samples/v1beta1_sparkapplication.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ metadata:
spec:
type: Scala
mode: cluster
image: spark:3.5.3
image: spark:3.5.4
imagePullPolicy: IfNotPresent
mainClass: org.apache.spark.examples.SparkPi
mainApplicationFile: local:///opt/spark/examples/jars/spark-examples.jar
sparkVersion: 3.5.3
sparkVersion: 3.5.4
driver:
labels:
version: 3.5.3
version: 3.5.4
serviceAccount: spark-operator-spark
executor:
labels:
version: 3.5.3
version: 3.5.4
instances: 1
8 changes: 4 additions & 4 deletions config/samples/v1beta2_scheduledsparkapplication.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,23 @@ spec:
template:
type: Scala
mode: cluster
image: spark:3.5.3
image: spark:3.5.4
imagePullPolicy: IfNotPresent
mainClass: org.apache.spark.examples.SparkPi
mainApplicationFile: local:///opt/spark/examples/jars/spark-examples.jar
sparkVersion: 3.5.3
sparkVersion: 3.5.4
restartPolicy:
type: Never
driver:
labels:
version: 3.5.3
version: 3.5.4
cores: 1
coreLimit: 1200m
memory: 512m
serviceAccount: spark-operator-spark
executor:
labels:
version: 3.5.3
version: 3.5.4
instances: 1
cores: 1
coreLimit: 1200m
Expand Down
8 changes: 4 additions & 4 deletions config/samples/v1beta2_sparkapplication.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ metadata:
spec:
type: Scala
mode: cluster
image: spark:3.5.3
image: spark:3.5.4
imagePullPolicy: IfNotPresent
mainClass: org.apache.spark.examples.SparkPi
mainApplicationFile: local:///opt/spark/examples/jars/spark-examples.jar
sparkVersion: 3.5.3
sparkVersion: 3.5.4
driver:
labels:
version: 3.5.3
version: 3.5.4
serviceAccount: spark-operator-spark
executor:
labels:
version: 3.5.3
version: 3.5.4
instances: 1
4 changes: 2 additions & 2 deletions examples/spark-pi-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ metadata:
spec:
type: Scala
mode: cluster
image: spark:3.5.3
image: spark:3.5.4
imagePullPolicy: IfNotPresent
mainClass: org.apache.spark.examples.SparkPi
mainApplicationFile: local:///opt/spark/examples/jars/spark-examples.jar
sparkVersion: 3.5.3
sparkVersion: 3.5.4
restartPolicy:
type: Never
volumes:
Expand Down
4 changes: 2 additions & 2 deletions examples/spark-pi-custom-resource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ metadata:
spec:
type: Scala
mode: cluster
image: spark:3.5.3
image: spark:3.5.4
imagePullPolicy: IfNotPresent
mainClass: org.apache.spark.examples.SparkPi
mainApplicationFile: local:///opt/spark/examples/jars/spark-examples.jar
sparkVersion: 3.5.3
sparkVersion: 3.5.4
restartPolicy:
type: Never
driver:
Expand Down
4 changes: 2 additions & 2 deletions examples/spark-pi-dynamic-allocation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ metadata:
spec:
type: Scala
mode: cluster
image: spark:3.5.3
image: spark:3.5.4
imagePullPolicy: IfNotPresent
mainClass: org.apache.spark.examples.SparkPi
mainApplicationFile: local:///opt/spark/examples/jars/spark-examples.jar
sparkVersion: 3.5.3
sparkVersion: 3.5.4
driver:
cores: 1
memory: 512m
Expand Down
4 changes: 2 additions & 2 deletions examples/spark-pi-kube-scheduler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ metadata:
spec:
type: Scala
mode: cluster
image: spark:3.5.3
image: spark:3.5.4
imagePullPolicy: IfNotPresent
mainClass: org.apache.spark.examples.SparkPi
mainApplicationFile: local:///opt/spark/examples/jars/spark-examples.jar
sparkVersion: 3.5.3
sparkVersion: 3.5.4
driver:
cores: 1
memory: 512m
Expand Down
12 changes: 6 additions & 6 deletions examples/spark-pi-pod-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ metadata:
spec:
type: Scala
mode: cluster
sparkVersion: 3.5.3
image: spark:3.5.3
sparkVersion: 3.5.4
image: spark:3.5.4
imagePullPolicy: IfNotPresent
mainApplicationFile: local:///opt/spark/examples/jars/spark-examples.jar
mainClass: org.apache.spark.examples.SparkPi
Expand All @@ -68,9 +68,9 @@ spec:
template:
metadata:
labels:
spark.apache.org/version: 3.5.3
spark.apache.org/version: 3.5.4
annotations:
spark.apache.org/version: 3.5.3
spark.apache.org/version: 3.5.4
spec:
containers:
- name: spark-kubernetes-driver
Expand Down Expand Up @@ -133,9 +133,9 @@ spec:
template:
metadata:
labels:
spark.apache.org/version: 3.5.3
spark.apache.org/version: 3.5.4
annotations:
spark.apache.org/version: 3.5.3
spark.apache.org/version: 3.5.4
spec:
containers:
- name: spark-kubernetes-executor
Expand Down
8 changes: 4 additions & 4 deletions examples/spark-pi-prometheus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,27 @@ metadata:
spec:
type: Scala
mode: cluster
image: {IMAGE_REGISTRY}/{IMAGE_REPOSITORY}/spark:3.5.3-gcs-prometheus
image: {IMAGE_REGISTRY}/{IMAGE_REPOSITORY}/spark:3.5.4-gcs-prometheus
imagePullPolicy: Always
mainClass: org.apache.spark.examples.SparkPi
mainApplicationFile: local:///opt/spark/examples/jars/spark-examples.jar
arguments:
- "100000"
sparkVersion: 3.5.3
sparkVersion: 3.5.4
restartPolicy:
type: Never
driver:
cores: 1
memory: 512m
labels:
version: 3.5.3
version: 3.5.4
serviceAccount: spark-operator-spark
executor:
cores: 1
instances: 1
memory: 512m
labels:
version: 3.5.3
version: 3.5.4
monitoring:
exposeDriverMetrics: true
exposeExecutorMetrics: true
Expand Down
4 changes: 2 additions & 2 deletions examples/spark-pi-python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ spec:
type: Python
pythonVersion: "3"
mode: cluster
image: spark:3.5.3
image: spark:3.5.4
imagePullPolicy: IfNotPresent
mainApplicationFile: local:///opt/spark/examples/src/main/python/pi.py
sparkVersion: 3.5.3
sparkVersion: 3.5.4
driver:
cores: 1
memory: 512m
Expand Down
4 changes: 2 additions & 2 deletions examples/spark-pi-scheduled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ spec:
template:
type: Scala
mode: cluster
image: spark:3.5.3
image: spark:3.5.4
imagePullPolicy: IfNotPresent
mainClass: org.apache.spark.examples.SparkPi
mainApplicationFile: local:///opt/spark/examples/jars/spark-examples.jar
sparkVersion: 3.5.3
sparkVersion: 3.5.4
restartPolicy:
type: Never
driver:
Expand Down
4 changes: 2 additions & 2 deletions examples/spark-pi-ttl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ metadata:
spec:
type: Scala
mode: cluster
image: spark:3.5.3
image: spark:3.5.4
imagePullPolicy: IfNotPresent
mainClass: org.apache.spark.examples.SparkPi
mainApplicationFile: local:///opt/spark/examples/jars/spark-examples.jar
sparkVersion: 3.5.3
sparkVersion: 3.5.4
timeToLiveSeconds: 30
driver:
cores: 1
Expand Down
4 changes: 2 additions & 2 deletions examples/spark-pi-volcano.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ metadata:
spec:
type: Scala
mode: cluster
image: spark:3.5.3
image: spark:3.5.4
imagePullPolicy: IfNotPresent
mainClass: org.apache.spark.examples.SparkPi
mainApplicationFile: local:///opt/spark/examples/jars/spark-examples.jar
sparkVersion: 3.5.3
sparkVersion: 3.5.4
driver:
cores: 1
memory: 512m
Expand Down
4 changes: 2 additions & 2 deletions examples/spark-pi-yunikorn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ metadata:
spec:
type: Scala
mode: cluster
image: spark:3.5.3
image: spark:3.5.4
imagePullPolicy: IfNotPresent
mainClass: org.apache.spark.examples.SparkPi
mainApplicationFile: local:///opt/spark/examples/jars/spark-examples.jar
sparkVersion: 3.5.3
sparkVersion: 3.5.4
driver:
cores: 1
memory: 512m
Expand Down
8 changes: 4 additions & 4 deletions examples/spark-pi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,22 @@ metadata:
spec:
type: Scala
mode: cluster
image: spark:3.5.3
image: spark:3.5.4
imagePullPolicy: IfNotPresent
mainClass: org.apache.spark.examples.SparkPi
mainApplicationFile: local:///opt/spark/examples/jars/spark-examples.jar
arguments:
- "5000"
sparkVersion: 3.5.3
sparkVersion: 3.5.4
driver:
labels:
version: 3.5.3
version: 3.5.4
cores: 1
memory: 512m
serviceAccount: spark-operator-spark
executor:
labels:
version: 3.5.3
version: 3.5.4
instances: 1
cores: 1
memory: 512m
2 changes: 1 addition & 1 deletion spark-docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# limitations under the License.
#

ARG SPARK_IMAGE=spark:3.5.3
ARG SPARK_IMAGE=spark:3.5.4
FROM ${SPARK_IMAGE}

# Switch to user root so we can add additional jars and configuration files.
Expand Down

0 comments on commit f9fd865

Please sign in to comment.