Dockerfiles/hive/2.1.1/bootstrap.sh

19 lines
281 B
Bash
Raw Normal View History

2017-09-02 06:44:57 +00:00
#!/bin/bash
2018-08-06 11:07:59 +00:00
## replace config
: ${EXTRA_CONF_DIR:=/config/hive}
if [ -d "$EXTRA_CONF_DIR" ]; then
cp $EXTRA_CONF_DIR/* /usr/local/hive/conf
fi
2017-09-02 06:44:57 +00:00
hive --service metastore
if [[ $1 == "-d" ]]; then
while true; do sleep 1000; done
fi
if [[ $1 == "-bash" ]]; then
/bin/bash
fi