[naver/pinpoint#7214] check last table in case interruption in table creation

This commit is contained in:
Roy Kim
2020-10-13 00:21:19 +09:00
committed by Roy Kim
parent a01b34d9fe
commit e6bde6114d
2 changed files with 8 additions and 2 deletions

View File

@@ -1,9 +1,8 @@
#!/bin/bash
if echo -e "exists 'AgentInfo'" | ${HBASE_HOME}/bin/hbase shell 2>&1 | grep -q "does exist" 2>/dev/null
if echo -e "exists 'HostApplicationMap_Ver2'" | ${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"