XiaoHongbo-Hope commented on code in PR #107: URL: https://github.com/apache/paimon-rust/pull/107#discussion_r2890612074
########## dev/spark/Dockerfile: ########## @@ -0,0 +1,56 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +# Spark with Paimon connector for integration tests. +# Writes Paimon tables to /tmp/paimon-warehouse (mount this as a volume +# so paimon-rust can read the data). +# +# Build args can be overridden via Makefile or docker build: +# --build-arg SPARK_VERSION=3.5.3 +# --build-arg PAIMON_VERSION=1.3.1 +ARG SPARK_VERSION + +FROM apache/spark:${SPARK_VERSION} + +# Re-declare ARGs so they are available in this stage (ARGs before FROM are not). +ARG PAIMON_VERSION + +USER root +WORKDIR ${SPARK_HOME} + +RUN apt-get install -y --no-install-recommends curl && \ + rm -rf /var/lib/apt/lists/* + +# Paimon Spark runtime JAR (Spark 3.5) +# https://repo.maven.apache.org/maven2/org/apache/paimon/paimon-spark-3.5/1.3.1/paimon-spark-3.5-1.3.1.jar +ENV PAIMON_JAR="paimon-spark-3.5-${PAIMON_VERSION}.jar" Review Comment: seems that spark version is configurable. (ref from line 23.) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
