Skip to content

Commit

Permalink
Add hive 4.0 image
Browse files Browse the repository at this point in the history
  • Loading branch information
mayankvadariya committed Dec 9, 2024
1 parent d5cc83b commit 39c4183
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ jobs:
- image: hive3.1-hive
platforms: linux/amd64,linux/arm64
test: hive3.1-hive
- image: hive3.1-hive
platforms: linux/amd64,linux/arm64
test: hive3.1-hive
- image: hdp3.1-hive-kerberized
test: hdp3.1-hive
# TODO add test https://github.com/trinodb/trino/issues/14543
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ jobs:
testing/spark3-hudi
testing/polaris-catalog
testing/unity-catalog
testing/hive4.0-hive
)
referenced_images=("${skipped_images[@]}" "${single_arch[@]}" "${multi_arch[@]}")
make meta
Expand Down
3 changes: 3 additions & 0 deletions bin/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ for ARCH in "${platforms[@]}"; do
test true
elif [[ ${ENVIRONMENT} == "kerberos" ]]; then
run_kerberos_tests
elif [[ ${ENVIRONMENT} == *"hive4.0"* ]]; then
# TODO Add test for hive4.0-hive
test true
elif [[ ${ENVIRONMENT} == *"hive"* ]]; then
# wait until hadoop processes is started
retry check_hadoop
Expand Down
26 changes: 26 additions & 0 deletions testing/hive4.0-hive/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Licensed 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.

ARG ARCH
FROM --platform=linux/${ARCH} apache/hive:4.0.0

# TODO replace with aws sdk v2
ARG AWS_JAVA_SDK_BUNDLE_VERSION=1.12.367
ARG HADOOP_AWS_VERSION=3.3.6

USER root
RUN apt-get -y update
RUN apt install curl -y

RUN mkdir -p /opt/hive/auxlib && \
curl -fLsS -o /opt/hive/auxlib/aws-java-sdk-bundle-$AWS_JAVA_SDK_BUNDLE_VERSION.jar https://repo1.maven.org/maven2/com/amazonaws/aws-java-sdk-bundle/$AWS_JAVA_SDK_BUNDLE_VERSION/aws-java-sdk-bundle-$AWS_JAVA_SDK_BUNDLE_VERSION.jar && \
curl -fLsS -o /opt/hive/auxlib/hadoop-aws-$HADOOP_AWS_VERSION.jar https://repo1.maven.org/maven2/org/apache/hadoop/hadoop-aws/$HADOOP_AWS_VERSION/hadoop-aws-$HADOOP_AWS_VERSION.jar

0 comments on commit 39c4183

Please sign in to comment.