Skip to content

Commit d54a8c0

Browse files
razvanNickLarsenNZ
andauthored
chore: support for Spark 3.5.6 (#580)
* chore: bump spark version to 3.5.6 * update changelog * Update docs/modules/spark-k8s/partials/supported-versions.adoc Co-authored-by: Nick <[email protected]> * fix image name * update test artefact * fix md lint --------- Co-authored-by: Nick <[email protected]>
1 parent 998e9d5 commit d54a8c0

23 files changed

+36
-32
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ All notable changes to this project will be documented in this file.
1212
- Use `--file-log-rotation-period` (or `FILE_LOG_ROTATION_PERIOD`) to configure the frequency of rotation.
1313
- Use `--console-log-format` (or `CONSOLE_LOG_FORMAT`) to set the format to `plain` (default) or `json`.
1414
- Expose history and connect services via listener classes ([#562]).
15+
- Support for Spark 3.5.6 ([#580]).
1516

1617
### Changed
1718

@@ -56,6 +57,7 @@ All notable changes to this project will be documented in this file.
5657
[#572]: https://github.com/stackabletech/spark-k8s-operator/pull/572
5758
[#573]: https://github.com/stackabletech/spark-k8s-operator/pull/573
5859
[#574]: https://github.com/stackabletech/spark-k8s-operator/pull/574
60+
[#580]: https://github.com/stackabletech/spark-k8s-operator/pull/580
5961
[#575]: https://github.com/stackabletech/spark-k8s-operator/pull/575
6062

6163
## [25.3.0] - 2025-03-21

docs/modules/spark-k8s/examples/example-history-app.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
name: spark-pi-s3-1
66
spec:
77
sparkImage:
8-
productVersion: 3.5.5
8+
productVersion: 3.5.6
99
pullPolicy: IfNotPresent
1010
mode: cluster
1111
mainClass: org.apache.spark.examples.SparkPi

docs/modules/spark-k8s/examples/example-history-server.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
name: spark-history
66
spec:
77
image:
8-
productVersion: 3.5.5
8+
productVersion: 3.5.6
99
logFileDirectory: # <1>
1010
s3:
1111
prefix: eventlogs/ # <2>

docs/modules/spark-k8s/examples/example-spark-connect.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
name: spark-connect # <1>
66
spec:
77
image:
8-
productVersion: "3.5.5" # <2>
8+
productVersion: "3.5.6" # <2>
99
pullPolicy: IfNotPresent
1010
args:
1111
- "--package org.apache.iceberg:iceberg-spark-runtime-3.5_2.12:1.8.1" # <3>

docs/modules/spark-k8s/examples/example-sparkapp-configmap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
namespace: default
77
spec:
88
sparkImage:
9-
productVersion: 3.5.5
9+
productVersion: 3.5.6
1010
mode: cluster
1111
mainApplicationFile: s3a://stackable-spark-k8s-jars/jobs/ny-tlc-report-1.1.0.jar # <3>
1212
mainClass: tech.stackable.demo.spark.NYTLCReport

docs/modules/spark-k8s/examples/example-sparkapp-image.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ metadata:
77
spec:
88
image: oci.stackable.tech/stackable/ny-tlc-report:0.2.0 # <1>
99
sparkImage:
10-
productVersion: 3.5.5
10+
productVersion: 3.5.6
1111
mode: cluster
1212
mainApplicationFile: local:///stackable/spark/jobs/ny_tlc_report.py # <2>
1313
args:

docs/modules/spark-k8s/examples/example-sparkapp-pvc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
namespace: default
77
spec:
88
sparkImage:
9-
productVersion: 3.5.5
9+
productVersion: 3.5.6
1010
mode: cluster
1111
mainApplicationFile: s3a://stackable-spark-k8s-jars/jobs/ny-tlc-report-1.0-SNAPSHOT.jar # <1>
1212
mainClass: org.example.App # <2>

docs/modules/spark-k8s/examples/example-sparkapp-s3-private.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
name: example-sparkapp-s3-private
66
spec:
77
sparkImage:
8-
productVersion: 3.5.5
8+
productVersion: 3.5.6
99
mode: cluster
1010
mainApplicationFile: s3a://my-bucket/spark-examples.jar # <1>
1111
mainClass: org.apache.spark.examples.SparkPi # <2>

docs/modules/spark-k8s/examples/example-sparkapp-streaming.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
namespace: default
77
spec:
88
sparkImage:
9-
productVersion: 3.5.5
9+
productVersion: 3.5.6
1010
mode: cluster
1111
mainApplicationFile: local:///stackable/spark/examples/src/main/python/streaming/hdfs_wordcount.py
1212
args:

docs/modules/spark-k8s/examples/getting_started/getting_started.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ metadata:
5656
namespace: default
5757
spec:
5858
sparkImage:
59-
productVersion: 3.5.5
59+
productVersion: 3.5.6
6060
mode: cluster
6161
mainApplicationFile: local:///stackable/spark/examples/src/main/python/pi.py
6262
driver:

docs/modules/spark-k8s/examples/getting_started/getting_started.sh.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ metadata:
5656
namespace: default
5757
spec:
5858
sparkImage:
59-
productVersion: 3.5.5
59+
productVersion: 3.5.6
6060
mode: cluster
6161
mainApplicationFile: local:///stackable/spark/examples/src/main/python/pi.py
6262
driver:

docs/modules/spark-k8s/pages/usage-guide/job-dependencies.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Below is an example of a custom image that includes a JDBC driver:
5858

5959
[source, Dockerfile]
6060
----
61-
FROM oci.stackable.tech/sdp/spark-k8s:3.5.5-stackable25.3.0 # <1>
61+
FROM oci.stackable.tech/sdp/spark-k8s:3.5.6-stackable25.3.0 # <1>
6262
6363
RUN curl --fail -o /stackable/spark/jars/postgresql-42.6.0.jar "https://jdbc.postgresql.org/download/postgresql-42.6.0.jar"
6464
----
@@ -75,8 +75,8 @@ metadata:
7575
name: spark-jdbc
7676
spec:
7777
sparkImage:
78-
custom: "oci.stackable.tech/sandbox/spark-k8s:3.5.5-stackable0.0.0-dev" # <1>
79-
productVersion: "3.5.5" # <2>
78+
custom: "oci.stackable.tech/sandbox/spark-k8s:3.5.6-stackable0.0.0-dev" # <1>
79+
productVersion: "3.5.6" # <2>
8080
pullPolicy: IfNotPresent # <3>
8181
...
8282
----

docs/modules/spark-k8s/partials/supported-versions.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
// Stackable Platform documentation.
44
// Please sort the versions in descending order (newest first)
55

6-
- 3.5.5 (Hadoop 3.3.4, Scala 2.12, Python 3.11, Java 17) (LTS)
6+
- 3.5.5 (Hadoop 3.3.4, Scala 2.12, Python 3.11, Java 17) (Deprecated)
7+
- 3.5.6 (Hadoop 3.3.4, Scala 2.12, Python 3.11, Java 17) (LTS)

examples/README-examples.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ Several resources are needed in this store. These can be loaded like this:
5050

5151
````text
5252
kubectl exec minio-mc-0 -- sh -c 'mc alias set test-minio http://test-minio:9000/'
53-
kubectl cp examples/ny-tlc-report-1.1.0-3.5.5.jar minio-mc-0:/tmp
53+
kubectl cp examples/ny-tlc-report-1.1.0-3.5.6.jar minio-mc-0:/tmp
5454
kubectl cp apps/ny_tlc_report.py minio-mc-0:/tmp
5555
kubectl cp examples/yellow_tripdata_2021-07.csv minio-mc-0:/tmp
56-
kubectl exec minio-mc-0 -- mc cp /tmp/ny-tlc-report-1.1.0-3.5.5.jar test-minio/my-bucket
56+
kubectl exec minio-mc-0 -- mc cp /tmp/ny-tlc-report-1.1.0-3.5.6.jar test-minio/my-bucket
5757
kubectl exec minio-mc-0 -- mc cp /tmp/ny_tlc_report.py test-minio/my-bucket
5858
kubectl exec minio-mc-0 -- mc cp /tmp/yellow_tripdata_2021-07.csv test-minio/my-bucket
5959
````

examples/ny-tlc-report-external-dependencies.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
namespace: default
77
spec:
88
sparkImage:
9-
productVersion: 3.5.5
9+
productVersion: 3.5.6
1010
pullPolicy: IfNotPresent
1111
mode: cluster
1212
mainApplicationFile: s3a://my-bucket/ny_tlc_report.py

examples/ny-tlc-report-image.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ metadata:
77
spec:
88
# everything under /jobs will be copied to /stackable/spark/jobs
99
image: oci.stackable.tech/stackable/ny-tlc-report:0.2.0
10-
sparkImage: oci.stackable.tech/sdp/spark-k8s:3.5.5-stackable0.0.0-dev
10+
sparkImage: oci.stackable.tech/sdp/spark-k8s:3.5.6-stackable0.0.0-dev
1111
sparkImagePullPolicy: IfNotPresent
1212
mode: cluster
1313
mainApplicationFile: local:///stackable/spark/jobs/ny_tlc_report.py

examples/ny-tlc-report.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ metadata:
1313
name: spark-ny-cm
1414
spec:
1515
sparkImage:
16-
productVersion: 3.5.5
16+
productVersion: 3.5.6
1717
mode: cluster
18-
mainApplicationFile: s3a://my-bucket/ny-tlc-report-1.1.0-3.5.5.jar
18+
mainApplicationFile: s3a://my-bucket/ny-tlc-report-1.1.0-3.5.6.jar
1919
mainClass: tech.stackable.demo.spark.NYTLCReport
2020
volumes:
2121
- name: cm-job-arguments

rust/operator-binary/src/crd/affinity.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ mod test {
4747
name: spark-history
4848
spec:
4949
image:
50-
productVersion: 3.5.5
50+
productVersion: 3.5.6
5151
logFileDirectory:
5252
s3:
5353
prefix: eventlogs/

rust/operator-binary/src/crd/history.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ mod test {
425425
name: spark-history
426426
spec:
427427
image:
428-
productVersion: 3.5.5
428+
productVersion: 3.5.6
429429
logFileDirectory:
430430
s3:
431431
prefix: eventlogs/

rust/operator-binary/src/history/config/jvm.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ mod tests {
6767
name: spark-history
6868
spec:
6969
image:
70-
productVersion: 3.5.5
70+
productVersion: 3.5.6
7171
logFileDirectory:
7272
s3:
7373
prefix: eventlogs/
@@ -100,7 +100,7 @@ mod tests {
100100
name: spark-history
101101
spec:
102102
image:
103-
productVersion: 3.5.5
103+
productVersion: 3.5.6
104104
logFileDirectory:
105105
s3:
106106
prefix: eventlogs/

tests/templates/kuttl/spark-connect/20-run-connect-client.yaml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ spec:
6060
{% if test_scenario['values']['spark-connect-client'].find(",") > 0 %}
6161
image: "{{ test_scenario['values']['spark-connect-client'].split(',')[1] }}"
6262
{% else %}
63-
image: oci.stackable.tech/sdp/spark-connect-client:{{ test_scenario['values']['spark-connect-client'] }}-stackable0.0.0-dev
63+
image: oci.stackable.tech/stackable/spark-connect-client:{{ test_scenario['values']['spark-connect-client'] }}-stackable0.0.0-dev
6464
{% endif %}
6565
imagePullPolicy: IfNotPresent
6666
command:

tests/test-definition.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,22 @@ dimensions:
66
- name: spark
77
values:
88
- 3.5.5
9+
- 3.5.6
910
# Alternatively, if you want to use a custom image, append a comma and the full image name to the product version
1011
# as in the example below.
11-
# - 3.5.5,oci.stackable.tech/sandbox/spark-k8s:3.5.5-stackable0.0.0-dev
12+
# - 3.5.6,oci.stackable.tech/sandbox/spark-k8s:3.5.6-stackable0.0.0-dev
1213
- name: spark-delta-lake
1314
values:
14-
- 3.5.5
15-
# - 3.5.5,oci.stackable.tech/sandbox/spark-k8s:3.5.5-stackable0.0.0-dev
15+
- 3.5.6
16+
# - 3.5.6,oci.stackable.tech/sandbox/spark-k8s:3.5.6-stackable0.0.0-dev
1617
- name: spark-connect
1718
values:
18-
- 3.5.5
19-
# - 3.5.5,oci.stackable.tech/sandbox/spark-k8s:3.5.5-stackable0.0.0-dev
19+
- 3.5.6
20+
# - 3.5.6,oci.stackable.tech/sandbox/spark-k8s:3.5.6-stackable0.0.0-dev
2021
- name: spark-connect-client
2122
values:
22-
- 3.5.5
23-
# - 3.5.5,oci.stackable.tech/sandbox/spark-k8s:3.5.5-stackable0.0.0-dev
23+
- 3.5.6
24+
# - 3.5.6,oci.stackable.tech/sandbox/spark-k8s:3.5.6-stackable0.0.0-dev
2425
- name: hbase
2526
values:
2627
- 2.6.2

0 commit comments

Comments
 (0)