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