Skip to content

Commit bea5768

Browse files
committed
add spark-connect jars to dist/connect folder
1 parent 07cf4fa commit bea5768

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

spark-k8s/Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,15 @@ RUN curl -O https://repo.stackable.tech/repository/packages/jackson-dataformat-x
247247
&& curl -O https://repo.stackable.tech/repository/packages/stax2-api/stax2-api-${STAX2_API}.jar \
248248
&& curl -O https://repo.stackable.tech/repository/packages/woodstox-core/woodstox-core-${WOODSTOX_CORE}.jar
249249

250+
WORKDIR /stackable/spark-${PRODUCT}/dist/connect
251+
252+
# As of version 3.5.5, spark-connect jars are not included in the dist folder.
253+
# To avoid classpath conflicts with existing spark applications,
254+
# we create a new dist/connect folder, and copy them here.
255+
RUN cp /stackable/spark-${PRODUCT}/connector/connect/server/target/spark-connect_*-${PRODUCT}.jar . \
256+
&& cp /stackable/spark-${PRODUCT}/connector/connect/common/target/spark-connect-common_*-${PRODUCT}.jar . \
257+
&& cp /stackable/spark-${PRODUCT}/connector/connect/client/jvm/target/spark-connect-client-jvm_2.12-${PRODUCT}.jar
258+
250259
WORKDIR /stackable/jmx
251260

252261
RUN curl -O "https://repo.stackable.tech/repository/packages/jmx-exporter/jmx_prometheus_javaagent-${JMX_EXPORTER}.jar"

0 commit comments

Comments
 (0)