mirror of
https://github.com/newnius/Dockerfiles.git
synced 2025-06-08 00:51:55 +00:00
update hive
This commit is contained in:
parent
f7bd7072b7
commit
446f2bd027
@ -1,4 +1,4 @@
|
|||||||
FROM newnius/hadoop:2.7.4
|
FROM alpine:3.8
|
||||||
|
|
||||||
MAINTAINER Newnius <newnius.cn@gmail.com>
|
MAINTAINER Newnius <newnius.cn@gmail.com>
|
||||||
|
|
||||||
@ -16,9 +16,6 @@ ENV PATH $PATH:$HIVE_HOME/bin
|
|||||||
ADD mysql-connector-java-5.1.44-bin.jar $HIVE_HOME/lib
|
ADD mysql-connector-java-5.1.44-bin.jar $HIVE_HOME/lib
|
||||||
ADD hive-site.xml $HIVE_HOME/conf
|
ADD hive-site.xml $HIVE_HOME/conf
|
||||||
|
|
||||||
RUN mv /etc/bootstrap.sh /etc/start_hadoop.sh
|
|
||||||
|
|
||||||
ADD bootstrap.sh /etc/bootstrap.sh
|
ADD bootstrap.sh /etc/bootstrap.sh
|
||||||
ADD init_hive.sh /etc/init_hive.sh
|
|
||||||
|
|
||||||
CMD ["/etc/bootstrap.sh", "-d"]
|
CMD ["/etc/bootstrap.sh", "-d"]
|
||||||
|
24
hive/2.1.1/Dockerfile.bak
Normal file
24
hive/2.1.1/Dockerfile.bak
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
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,8 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# setup hadoop
|
|
||||||
bash /etc/start_hadoop.sh -bash
|
|
||||||
|
|
||||||
hive --service metastore
|
hive --service metastore
|
||||||
|
|
||||||
if [[ $1 == "-d" ]]; then
|
if [[ $1 == "-d" ]]; then
|
||||||
|
14
hive/2.1.1/bootstrap.sh.bak
Executable file
14
hive/2.1.1/bootstrap.sh.bak
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#!/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
|
Loading…
Reference in New Issue
Block a user