Dockerfiles/hive/2.3.3/bootstrap.sh
2018-08-06 21:08:28 +08:00

19 lines
281 B
Bash
Executable File

#!/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
while true; do sleep 1000; done
fi
if [[ $1 == "-bash" ]]; then
/bin/bash
fi