[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

@ -31,6 +31,8 @@ services:
- "60020:60020"
- "16030:16030"
restart: always
depends_on:
- zoo1
pinpoint-mysql:
build:
@ -69,6 +71,7 @@ services:
depends_on:
- pinpoint-hbase
- pinpoint-mysql
- zoo1
restart: always
expose:
- "9997"
@ -119,6 +122,7 @@ services:
depends_on:
- pinpoint-hbase
- zoo1
restart: always
expose:
- "9991"
@ -255,6 +259,8 @@ services:
- JOB_MANAGER_RPC_ADDRESS=jobmanager
networks:
- pinpoint
depends_on:
- zoo1
taskmanager:
container_name: "${PINPOINT_FLINK_NAME}-taskmanager"
@ -268,6 +274,7 @@ services:
- "6122:6122"
- "19994:19994"
depends_on:
- zoo1
- jobmanager
command: taskmanager
links:

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"