Skip to content

Commit 039c6e1

Browse files
committed
feat: symlinks to harmonize openlineage filenames
1 parent 200aa12 commit 039c6e1

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ All notable changes to this project will be documented in this file.
2424
- druid: Add `37.0.0` ([#1535]).
2525
- hbase: Add `2.6.6` ([#1547]).
2626
- spark: Add `4.1.2` ([#1550]).
27-
- spark: Bake the OpenLineage Spark listener (`1.51.0`) into the Spark images under the dedicated directory `/stackable/spark/openlineage/` (off the `extra-jars` classpath), enabling the OpenLineage MVP in the operator. The Scala 2.13 build (`openlineage-spark_2.13`) is used for the `4.1.x` images and the Scala 2.12 build (`openlineage-spark_2.12`) for the `3.5.x` images ([#XXXX]).
27+
- spark: Bake the OpenLineage Spark listener (`1.51.0`) into the Spark images under the dedicated directory `/stackable/spark/openlineage/` (off the `extra-jars` classpath), enabling the OpenLineage MVP in the operator. The Scala 2.13 build (`openlineage-spark_2.13`) is used for the `4.1.x` images and the Scala 2.12 build (`openlineage-spark_2.12`) for the `3.5.x` images, both exposed through a stable `openlineage-spark.jar` symlink so the operator need not track the version or Scala suffix ([#XXXX]).
2828
- opensearch: Add `3.6.0` ([#1549]).
2929
- opensearch-dashboards: Add `3.6.0` ([#1551]).
3030

spark-k8s/Dockerfile.3

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,11 @@ mkdir -p /stackable/spark-${PRODUCT_VERSION}-stackable${RELEASE_VERSION}/dist/op
159159
mvn dependency:get -Dartifact=io.openlineage:openlineage-spark_2.12:${OPENLINEAGE_SPARK_VERSION}
160160
cp /root/.m2/repository/io/openlineage/openlineage-spark_2.12/${OPENLINEAGE_SPARK_VERSION}/openlineage-spark_2.12-${OPENLINEAGE_SPARK_VERSION}.jar \
161161
/stackable/spark-${PRODUCT_VERSION}-stackable${RELEASE_VERSION}/dist/openlineage/openlineage-spark_2.12-${OPENLINEAGE_SPARK_VERSION}.jar
162+
# Symlink to a stable, version- and Scala-independent name (mirroring the jmx_prometheus_javaagent.jar
163+
# pattern) so the operator can reference the jar without knowing the version or Scala build baked here.
164+
# The relative target keeps the link valid after `dist` is copied into the final image.
165+
ln -s openlineage-spark_2.12-${OPENLINEAGE_SPARK_VERSION}.jar \
166+
/stackable/spark-${PRODUCT_VERSION}-stackable${RELEASE_VERSION}/dist/openlineage/openlineage-spark.jar
162167

163168
# Get the correct `tini` binary for our architecture.
164169
curl --fail "https://repo.stackable.tech/repository/packages/tini/tini-${TINI_VERSION}-${TARGETARCH}" \

spark-k8s/Dockerfile.4

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@ mkdir -p /stackable/spark-${PRODUCT_VERSION}-stackable${RELEASE_VERSION}/dist/op
132132
mvn dependency:get -Dartifact=io.openlineage:openlineage-spark_2.13:${OPENLINEAGE_SPARK_VERSION}
133133
cp /root/.m2/repository/io/openlineage/openlineage-spark_2.13/${OPENLINEAGE_SPARK_VERSION}/openlineage-spark_2.13-${OPENLINEAGE_SPARK_VERSION}.jar \
134134
/stackable/spark-${PRODUCT_VERSION}-stackable${RELEASE_VERSION}/dist/openlineage/openlineage-spark_2.13-${OPENLINEAGE_SPARK_VERSION}.jar
135+
# Symlink to a stable, version- and Scala-independent name (mirroring the jmx_prometheus_javaagent.jar
136+
# pattern) so the operator can reference the jar without knowing the version or Scala build baked here.
137+
# The relative target keeps the link valid after `dist` is copied into the final image.
138+
ln -s openlineage-spark_2.13-${OPENLINEAGE_SPARK_VERSION}.jar \
139+
/stackable/spark-${PRODUCT_VERSION}-stackable${RELEASE_VERSION}/dist/openlineage/openlineage-spark.jar
135140

136141
# Get the correct `tini` binary for our architecture.
137142
curl --fail "https://repo.stackable.tech/repository/packages/tini/tini-${TINI_VERSION}-${TARGETARCH}" \

0 commit comments

Comments
 (0)