Add checking if hbase table was created before
This commit is contained in:
parent
d2ad09deb8
commit
e15c6d3d48
|
@ -0,0 +1,11 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if echo -e "exists 'AgentInfo'" | ${HBASE_HOME}/bin/hbase shell 2>&1 | grep -q "does exist" 2>/dev/null
|
||||||
|
then
|
||||||
|
echo "Tables already exist"
|
||||||
|
break
|
||||||
|
else
|
||||||
|
sleep 15
|
||||||
|
echo "create tables"
|
||||||
|
${HBASE_HOME}/bin/hbase shell ${BASE_DIR}/hbase-create.hbase
|
||||||
|
fi
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
${HBASE_HOME}/bin/start-hbase.sh
|
||||||
|
|
||||||
|
/usr/local/bin/check-table.sh
|
Loading…
Reference in New Issue