Dockerfile 774 B

1234567891011121314151617181920212223
  1. FROM docker.shemic.com/java/base:latest
  2. MAINTAINER Rabin "https://github.com/shemic"
  3. # set environment variable
  4. ENV HADOOP_HOME=/share/lib/hadoop
  5. ENV SPARK_HOME=/share/lib/spark
  6. ENV PATH=$PATH:$HADOOP_HOME/bin:$HADOOP_HOME/sbin:$SPARK_HOME/bin
  7. ENV HIVE_HOME=/usr/local/hive
  8. ENV HIVE_VERSION=2.1.1
  9. ENV PATH=$PATH:$HIVE_HOME/bin
  10. # install
  11. RUN curl -O ${MIRRORS}apache/hive/hive-$HIVE_VERSION/apache-hive-$HIVE_VERSION-bin.tar.gz && tar -xzvf apache-hive-$HIVE_VERSION-bin.tar.gz && mv apache-hive-$HIVE_VERSION-bin HIVE_HOME && rm apache-hive-$HIVE_VERSION-bin.tar.gz && \
  12. mkdir -p /root/hive/tmp && \
  13. mkdir -p /root/hive/logs
  14. #COPY apache-hive-$HIVE_VERSION-bin $HIVE_HOME
  15. COPY hive.sh /entrypoint/hive.sh
  16. COPY plugin/* $HIVE_HOME/lib/
  17. VOLUME ["/usr/local/hive/conf"]