You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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: apache/iceberg-python#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>
Copy file name to clipboardExpand all lines: crates/catalog/hms/testdata/hms_catalog/Dockerfile
+8-14Lines changed: 8 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -13,24 +13,18 @@
13
13
# See the License for the specific language governing permissions and
14
14
# limitations under the License.
15
15
16
-
FROM --platform=$BUILDPLATFORM openjdk:8-jre-slim AS build
17
-
18
-
ARG BUILDPLATFORM
19
-
20
-
RUN apt-get update -qq && apt-get -qq -y install curl
16
+
FROM apache/hive:3.1.3
21
17
22
18
ENV AWSSDK_VERSION=2.20.18
23
19
ENV HADOOP_VERSION=3.1.0
24
20
25
-
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
26
-
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
0 commit comments