Skip to content

Instantly share code, notes, and snippets.

@shawnzhu
Created January 3, 2019 04:26
Show Gist options
  • Save shawnzhu/d19507336145053e4b871dd1271aed32 to your computer and use it in GitHub Desktop.
Save shawnzhu/d19507336145053e4b871dd1271aed32 to your computer and use it in GitHub Desktop.
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