update spark

This commit is contained in:
2018-08-08 11:25:11 +08:00
parent 8750cbd8c2
commit 72da02749e
3 changed files with 95 additions and 0 deletions

16
spark/test/bootstrap.sh Executable file
View File

@@ -0,0 +1,16 @@
#! /bin/bash
## replace config
: ${EXTRA_CONF_DIR:=/config/hadoop}
if [ -d "$EXTRA_CONF_DIR" ]; then
cp $EXTRA_CONF_DIR/* /usr/local/hadoop/etc/hadoop/
fi
if [[ $1 == "-d" ]]; then
while true; do sleep 1000; done
fi
if [[ $1 == "-bash" ]]; then
/bin/bash
fi