From e356a4af6c03ca78b8f50c0f08b4679382d508d0 Mon Sep 17 00:00:00 2001 From: Newnius Date: Mon, 6 Aug 2018 19:07:59 +0800 Subject: [PATCH] update hive --- hive/2.1.1/Dockerfile | 3 +++ hive/2.1.1/bootstrap.sh | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/hive/2.1.1/Dockerfile b/hive/2.1.1/Dockerfile index eb7e700..c3baeef 100644 --- a/hive/2.1.1/Dockerfile +++ b/hive/2.1.1/Dockerfile @@ -4,6 +4,9 @@ MAINTAINER Newnius USER root +# Prerequisites +RUN apk add --no-cache openssl openjdk8-jre rsync bash procps + # Install Apche Hive ENV HIVE_VER 2.1.1 diff --git a/hive/2.1.1/bootstrap.sh b/hive/2.1.1/bootstrap.sh index d4c757b..16ed242 100755 --- a/hive/2.1.1/bootstrap.sh +++ b/hive/2.1.1/bootstrap.sh @@ -1,5 +1,12 @@ #!/bin/bash +## replace config +: ${EXTRA_CONF_DIR:=/config/hive} + +if [ -d "$EXTRA_CONF_DIR" ]; then + cp $EXTRA_CONF_DIR/* /usr/local/hive/conf +fi + hive --service metastore if [[ $1 == "-d" ]]; then