Skip to content

Commit 7f65711

Browse files
committed
feat: remove all refs to the extra-jars folder
1 parent e82bb56 commit 7f65711

File tree

5 files changed

+19
-15
lines changed

5 files changed

+19
-15
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ All notable changes to this project will be documented in this file.
1313
- Various documentation of the CRD ([#319]).
1414
- [BREAKING] Removed version field. Several attributes have been changed to mandatory. While this change is
1515
technically breaking, existing Spark jobs would not have worked before as these attributes were necessary ([#319]).
16+
- [BREAKING] Remove `userClassPathFirst` properties from `spark-submit` and all references to the
17+
`/stackable/spark/extra-jars` folder. This PR is paired with the `docker-images` PR #556 which removes that folder. ([#350])
1618

1719
### Fixed
1820

@@ -22,6 +24,7 @@ All notable changes to this project will be documented in this file.
2224
[#313]: https://github.com/stackabletech/spark-k8s-operator/pull/313
2325
[#319]: https://github.com/stackabletech/spark-k8s-operator/pull/319
2426
[#344]: https://github.com/stackabletech/spark-k8s-operator/pull/344
27+
[#350]: https://github.com/stackabletech/spark-k8s-operator/pull/350
2528

2629
## [23.11.0] - 2023-11-24
2730

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -671,11 +671,6 @@ fn env_vars(s3logdir: &S3LogDir) -> Vec<EnvVar> {
671671
value: Some("true".into()),
672672
value_from: None,
673673
});
674-
vars.push(EnvVar {
675-
name: "SPARK_DAEMON_CLASSPATH".to_string(),
676-
value: Some("/stackable/spark/extra-jars/*".into()),
677-
value_from: None,
678-
});
679674

680675
let mut history_opts = vec![
681676
format!("-Dlog4j.configurationFile={VOLUME_MOUNT_PATH_LOG_CONFIG}/{LOG4J2_CONFIG_FILE}"),

rust/operator-binary/src/spark_k8s_controller.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -762,8 +762,7 @@ fn spark_job(
762762
.add_env_var(
763763
"SPARK_SUBMIT_OPTS",
764764
format!(
765-
"-cp /stackable/spark/extra-jars/*:/stackable/spark/jars/* \
766-
-Dlog4j.configurationFile={VOLUME_MOUNT_PATH_LOG_CONFIG}/{LOG4J2_CONFIG_FILE}"
765+
"-Dlog4j.configurationFile={VOLUME_MOUNT_PATH_LOG_CONFIG}/{LOG4J2_CONFIG_FILE}"
767766
),
768767
)
769768
// TODO: move this to the image

tests/templates/kuttl/delta/40-spark-app.yaml.j2

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ spec:
88
vectorAggregatorConfigMapName: vector-aggregator-discovery
99
{% endif %}
1010
sparkImage:
11-
{% if test_scenario['values']['spark'].find(",") > 0 %}
12-
custom: "{{ test_scenario['values']['spark'].split(',')[1] }}"
13-
productVersion: "{{ test_scenario['values']['spark'].split(',')[0] }}"
11+
{% if test_scenario['values']['spark-delta'].find(",") > 0 %}
12+
custom: "{{ test_scenario['values']['spark-delta'].split(',')[1] }}"
13+
productVersion: "{{ test_scenario['values']['spark-delta'].split(',')[0] }}"
1414
{% else %}
15-
productVersion: "{{ test_scenario['values']['spark'] }}"
15+
productVersion: "{{ test_scenario['values']['spark-delta'] }}"
1616
{% endif %}
1717
pullPolicy: IfNotPresent
1818
mode: cluster

tests/test-definition.yaml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,18 @@ dimensions:
55
- "false"
66
- name: spark
77
values:
8-
- 3.4.1
9-
- 3.5.0
8+
#- 3.4.1
9+
#- 3.5.0
1010
# Alternatively, if you want to use a custom image, append a comma and the full image name to the product version
1111
# as in the example below.
12-
# - 3.4.0,docker.stackable.tech/sandbox/spark-k8s:3.4.0-stackable0.0.0-dev
12+
- 3.4.1,docker.stackable.tech/sandbox/spark-k8s:3.4.1-stackable0.0.0-dev
13+
- 3.5.0,docker.stackable.tech/sandbox/spark-k8s:3.5.0-stackable0.0.0-dev
14+
- name: spark-delta
15+
values:
16+
#- 3.5.0
17+
- 3.4.1,docker.stackable.tech/sandbox/spark-k8s:3.4.1-stackable0.0.0-dev
18+
- 3.5.0,docker.stackable.tech/sandbox/spark-k8s:3.5.0-stackable0.0.0-dev
19+
1320
- name: ny-tlc-report
1421
values:
1522
- 0.1.0
@@ -75,7 +82,7 @@ tests:
7582
- spark
7683
- name: delta
7784
dimensions:
78-
- spark
85+
- spark-delta
7986
- delta
8087
suites:
8188
- name: nightly

0 commit comments

Comments
 (0)