diff --git a/testing/hive4.0-hive/Dockerfile b/testing/hive4.0-hive/Dockerfile new file mode 100644 index 00000000..75ac0b3f --- /dev/null +++ b/testing/hive4.0-hive/Dockerfile @@ -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 + +ARG AWS_JAVA_SDK_BUNDLE_VERSION=1.12.367 +ARG HADOOP_AWS_SDK_VERSION=3.3.6 + +USER root +RUN apt-get -y update +RUN apt-get install sudo -y +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_SDK_VERSION.jar https://repo1.maven.org/maven2/org/apache/hadoop/hadoop-aws/$HADOOP_AWS_SDK_VERSION/hadoop-aws-$HADOOP_AWS_SDK_VERSION.jar