Created
January 3, 2019 04:26
-
-
Save shawnzhu/d19507336145053e4b871dd1271aed32 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM openjdk:8u181-jre-stretch | |
WORKDIR /opt | |
RUN curl -L http://apache.mirrors.pair.com/hive/hive-2.3.3/apache-hive-2.3.3-bin.tar.gz | tar zxf - && \ | |
curl -L http://apache.mirrors.pair.com/hadoop/common/hadoop-2.9.1/hadoop-2.9.1.tar.gz | tar zxf - | |
ENV JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/jre | |
ENV HADOOP_HOME=/opt/hadoop-2.9.1 | |
ENV HIVE_HOME=/opt/apache-hive-2.3.3-bin | |
ADD hive-site.xml hive-log4j2.properties ${HIVE_HOME}/conf/ | |
WORKDIR $HIVE_HOME | |
EXPOSE 9083 | |
ENTRYPOINT ["bin/hive"] | |
CMD ["--service", "metastore"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment