This is an automated email from the ASF dual-hosted git repository.
liurenjie1024 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg-rust.git
The following commit(s) were added to refs/heads/main by this push:
new e08bc619 infra: use apache/hive:4.0.0 as hive Dockerfile base image
(#1823)
e08bc619 is described below
commit e08bc61985a0a458ce088ec9d0b2429cd4fb2a20
Author: Drew Gallardo <[email protected]>
AuthorDate: Tue Nov 4 01:18:21 2025 -0800
infra: use apache/hive:4.0.0 as hive Dockerfile base image (#1823)
## What changes are included in this PR?
We had some failures in the Pyiceberg repo with the hive docker file
here: https://github.com/apache/iceberg-python/pull/2697, so I'm porting
this over here.
The HMS test Dockerfile was using a deprecated `openjdk:8-jre-slim` base
image that has very **recently** been removed from Docker Hub, causing
build failures:
```
#7 ERROR: docker.io/library/openjdk:8-jre-slim: not found
```
Simplified the Dockerfile to use apache/hive:3.1.3 as the base image
directly, also eliminating the multi-stage build pattern. Which removes
the dependency on a deprecated OpenJDK image and will use what's
included in hive, and maintains the same functionality for HMS
integration tests.
Inspired by
[](https://github.com/trinodb/docker-images/blob/master/testing/hive4.0-hive/Dockerfile)<https://github.com/trinodb/docker-images/blob/master/testing/hive4.0-hive/Dockerfile>
---
crates/catalog/hms/testdata/hms_catalog/Dockerfile | 22 ++++++++--------------
1 file changed, 8 insertions(+), 14 deletions(-)
diff --git a/crates/catalog/hms/testdata/hms_catalog/Dockerfile
b/crates/catalog/hms/testdata/hms_catalog/Dockerfile
index 8392e174..65ebc3d6 100644
--- a/crates/catalog/hms/testdata/hms_catalog/Dockerfile
+++ b/crates/catalog/hms/testdata/hms_catalog/Dockerfile
@@ -13,24 +13,18 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-FROM --platform=$BUILDPLATFORM openjdk:8-jre-slim AS build
-
-ARG BUILDPLATFORM
-
-RUN apt-get update -qq && apt-get -qq -y install curl
+FROM apache/hive:3.1.3
ENV AWSSDK_VERSION=2.20.18
ENV HADOOP_VERSION=3.1.0
-RUN curl
https://repo1.maven.org/maven2/com/amazonaws/aws-java-sdk-bundle/1.11.271/aws-java-sdk-bundle-1.11.271.jar
-Lo /tmp/aws-java-sdk-bundle-1.11.271.jar
-RUN curl
https://repo1.maven.org/maven2/org/apache/hadoop/hadoop-aws/${HADOOP_VERSION}/hadoop-aws-${HADOOP_VERSION}.jar
-Lo /tmp/hadoop-aws-${HADOOP_VERSION}.jar
+USER root
+RUN apt-get update -qq && apt-get -qq -y install curl && \
+ curl
https://repo1.maven.org/maven2/org/apache/hadoop/hadoop-aws/${HADOOP_VERSION}/hadoop-aws-${HADOOP_VERSION}.jar
-Lo /opt/hive/lib/hadoop-aws-${HADOOP_VERSION}.jar && \
+ curl
https://repo1.maven.org/maven2/com/amazonaws/aws-java-sdk-bundle/1.11.271/aws-java-sdk-bundle-1.11.271.jar
-Lo /opt/hive/lib/aws-java-sdk-bundle-1.11.271.jar && \
+ apt-get clean && rm -rf /var/lib/apt/lists/*
-FROM apache/hive:3.1.3
-
-ENV AWSSDK_VERSION=2.20.18
-ENV HADOOP_VERSION=3.1.0
+COPY core-site.xml /opt/hadoop/etc/hadoop/core-site.xml
-COPY --from=build /tmp/hadoop-aws-${HADOOP_VERSION}.jar
/opt/hive/lib/hadoop-aws-${HADOOP_VERSION}.jar
-COPY --from=build /tmp/aws-java-sdk-bundle-1.11.271.jar
/opt/hive/lib/aws-java-sdk-bundle-1.11.271.jar
-COPY core-site.xml /opt/hadoop/etc/hadoop/core-site.xml
\ No newline at end of file
+USER hive