Files
Dockerfiles/hive/2.1.1/bootstrap.sh

16 lines
306 B
Bash
Raw Normal View History

2017-09-02 14:44:57 +08:00
#!/bin/bash
2018-08-06 19:07:59 +08:00
## replace config
2019-04-06 11:50:23 +08:00
test -d /config/hadoop && cp /config/hadoop/* /usr/local/hadoop/etc/hadoop/
test -d /config/hive && cp /config/hive/* /usr/local/hive/conf/
2018-08-06 19:07:59 +08:00
2017-09-02 14:44:57 +08:00
hive --service metastore
if [[ $1 == "-d" ]]; then
while true; do sleep 1000; done
fi
if [[ $1 == "-bash" ]]; then
/bin/bash
fi