mirror of
https://github.com/newnius/Dockerfiles.git
synced 2025-06-07 16:41:55 +00:00
update hive
This commit is contained in:
parent
e356a4af6c
commit
bb88d0280a
@ -1,25 +1,23 @@
|
||||
FROM alpine:3.8
|
||||
FROM newnius/hadoop:2.7.4
|
||||
|
||||
MAINTAINER Newnius <newnius.cn@gmail.com>
|
||||
|
||||
USER root
|
||||
|
||||
# Prerequisites
|
||||
RUN apk add --no-cache openssl openjdk8-jre rsync bash procps
|
||||
|
||||
# Install Apche Hive
|
||||
ENV HIVE_VER 2.1.1
|
||||
|
||||
RUN wget -O apache-hive.tar.gz https://archive.apache.org/dist/hive/hive-$HIVE_VER/apache-hive-$HIVE_VER-bin.tar.gz && \
|
||||
tar -xzf apache-hive.tar.gz -C /usr/local/ && rm apache-hive.tar.gz
|
||||
|
||||
RUN ln -s /usr/local/apache-hive-$HUVE_VER-bin /usr/local/hive
|
||||
RUN ln -s /usr/local/apache-hive-$HIVE_VER-bin /usr/local/hive
|
||||
|
||||
ENV HIVE_HOME /usr/local/hive
|
||||
|
||||
ENV PATH $PATH:$HIVE_HOME/bin
|
||||
|
||||
ADD mysql-connector-java-5.1.44-bin.jar $HIVE_HOME/lib
|
||||
#RUN wget -O $HIVE_HOME/lib/ http://central.maven.org/maven2/mysql/mysql-connector-java/5.1.44/mysql-connector-java-5.1.44.jar
|
||||
|
||||
ADD hive-site.xml $HIVE_HOME/conf
|
||||
|
||||
|
@ -1,24 +0,0 @@
|
||||
FROM newnius/hadoop:2.7.4
|
||||
|
||||
MAINTAINER Newnius <newnius.cn@gmail.com>
|
||||
|
||||
USER root
|
||||
|
||||
# Install Apche Hive
|
||||
RUN wget -O apache-hive.tar.gz http://www-eu.apache.org/dist/hive/hive-2.1.1/apache-hive-2.1.1-bin.tar.gz && \
|
||||
tar -xzf apache-hive.tar.gz -C /usr/local/ && rm apache-hive.tar.gz
|
||||
|
||||
RUN ln -s /usr/local/apache-hive-2.1.1-bin /usr/local/hive
|
||||
|
||||
ENV HIVE_HOME /usr/local/apache-hive-2.1.1-bin
|
||||
ENV PATH $PATH:$HIVE_HOME/bin
|
||||
|
||||
ADD mysql-connector-java-5.1.44-bin.jar $HIVE_HOME/lib
|
||||
ADD hive-site.xml $HIVE_HOME/conf
|
||||
|
||||
RUN mv /etc/bootstrap.sh /etc/start_hadoop.sh
|
||||
|
||||
ADD bootstrap.sh /etc/bootstrap.sh
|
||||
ADD init_hive.sh /etc/init_hive.sh
|
||||
|
||||
CMD ["/etc/bootstrap.sh", "-d"]
|
@ -1,14 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# setup hadoop
|
||||
bash /etc/start_hadoop.sh -bash
|
||||
|
||||
hive --service metastore
|
||||
|
||||
if [[ $1 == "-d" ]]; then
|
||||
while true; do sleep 1000; done
|
||||
fi
|
||||
|
||||
if [[ $1 == "-bash" ]]; then
|
||||
/bin/bash
|
||||
fi
|
@ -21,7 +21,7 @@
|
||||
</property>
|
||||
<property>
|
||||
<name>hive.metastore.uris</name>
|
||||
<value>thrift://hadoop-master:9083</value>
|
||||
<value>thrift://localhost:9083</value>
|
||||
</property>
|
||||
<property>
|
||||
<name>hive.metastore.schema.verification</name>
|
||||
|
Loading…
Reference in New Issue
Block a user