[naver/pinpoint#7214] check last table in case interruption in table creation
This commit is contained in:
		
							parent
							
								
									a01b34d9fe
								
							
						
					
					
						commit
						e6bde6114d
					
				| 
						 | 
					@ -31,6 +31,8 @@ services:
 | 
				
			||||||
      - "60020:60020"
 | 
					      - "60020:60020"
 | 
				
			||||||
      - "16030:16030"
 | 
					      - "16030:16030"
 | 
				
			||||||
    restart: always
 | 
					    restart: always
 | 
				
			||||||
 | 
					    depends_on:
 | 
				
			||||||
 | 
					      - zoo1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  pinpoint-mysql:
 | 
					  pinpoint-mysql:
 | 
				
			||||||
    build:
 | 
					    build:
 | 
				
			||||||
| 
						 | 
					@ -69,6 +71,7 @@ services:
 | 
				
			||||||
    depends_on:
 | 
					    depends_on:
 | 
				
			||||||
      - pinpoint-hbase
 | 
					      - pinpoint-hbase
 | 
				
			||||||
      - pinpoint-mysql
 | 
					      - pinpoint-mysql
 | 
				
			||||||
 | 
					      - zoo1
 | 
				
			||||||
    restart: always
 | 
					    restart: always
 | 
				
			||||||
    expose:
 | 
					    expose:
 | 
				
			||||||
      - "9997"
 | 
					      - "9997"
 | 
				
			||||||
| 
						 | 
					@ -119,6 +122,7 @@ services:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    depends_on:
 | 
					    depends_on:
 | 
				
			||||||
      - pinpoint-hbase
 | 
					      - pinpoint-hbase
 | 
				
			||||||
 | 
					      - zoo1
 | 
				
			||||||
    restart: always
 | 
					    restart: always
 | 
				
			||||||
    expose:
 | 
					    expose:
 | 
				
			||||||
      - "9991"
 | 
					      - "9991"
 | 
				
			||||||
| 
						 | 
					@ -255,6 +259,8 @@ services:
 | 
				
			||||||
      - JOB_MANAGER_RPC_ADDRESS=jobmanager
 | 
					      - JOB_MANAGER_RPC_ADDRESS=jobmanager
 | 
				
			||||||
    networks:
 | 
					    networks:
 | 
				
			||||||
      - pinpoint
 | 
					      - pinpoint
 | 
				
			||||||
 | 
					    depends_on:
 | 
				
			||||||
 | 
					      - zoo1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  taskmanager:
 | 
					  taskmanager:
 | 
				
			||||||
    container_name: "${PINPOINT_FLINK_NAME}-taskmanager"
 | 
					    container_name: "${PINPOINT_FLINK_NAME}-taskmanager"
 | 
				
			||||||
| 
						 | 
					@ -268,6 +274,7 @@ services:
 | 
				
			||||||
      - "6122:6122"
 | 
					      - "6122:6122"
 | 
				
			||||||
      - "19994:19994"
 | 
					      - "19994:19994"
 | 
				
			||||||
    depends_on:
 | 
					    depends_on:
 | 
				
			||||||
 | 
					      - zoo1
 | 
				
			||||||
      - jobmanager
 | 
					      - jobmanager
 | 
				
			||||||
    command: taskmanager
 | 
					    command: taskmanager
 | 
				
			||||||
    links:
 | 
					    links:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,9 +1,8 @@
 | 
				
			||||||
#!/bin/bash
 | 
					#!/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 
 | 
					then 
 | 
				
			||||||
    echo "Tables already exist"
 | 
					    echo "Tables already exist"
 | 
				
			||||||
    break
 | 
					 | 
				
			||||||
else
 | 
					else
 | 
				
			||||||
    sleep 15        
 | 
					    sleep 15        
 | 
				
			||||||
    echo "create tables"
 | 
					    echo "create tables"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue