mirror of
https://github.com/newnius/Dockerfiles.git
synced 2025-06-07 16:41:55 +00:00
update hbase, add bootstrap and custom conf support
This commit is contained in:
parent
2d94310011
commit
bb6c60d292
22
hbase/1.2.6/bootstrap.sh
Executable file
22
hbase/1.2.6/bootstrap.sh
Executable file
@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
## replace config
|
||||
: ${EXTRA_CONF_DIR:=/config/hbase}
|
||||
|
||||
if [ -d "$EXTRA_CONF_DIR" ]; then
|
||||
cp $EXTRA_CONF_DIR/* $HBASE_HOME/conf/
|
||||
fi
|
||||
|
||||
/usr/sbin/sshd
|
||||
|
||||
## stop all in case master starts far behind
|
||||
# $HBASE_HOME/bin/stop-hbase.sh
|
||||
$HBASE_HOME/bin/start-hbase.sh
|
||||
|
||||
if [[ $1 == "-d" ]]; then
|
||||
while true; do sleep 1000; done
|
||||
fi
|
||||
|
||||
if [[ $1 == "-bash" ]]; then
|
||||
/bin/bash
|
||||
fi
|
Loading…
Reference in New Issue
Block a user