[docker](hive) sync for hive initializing (#35479)

Add healthy checking for hive2 and hive3
This commit is contained in:
苏小刚
2024-05-28 22:47:45 +08:00
committed by yiguolei
parent 646d8eaa73
commit 7381cd56b0
2 changed files with 26 additions and 0 deletions

View File

@ -87,6 +87,11 @@ services:
- ./scripts:/mnt/scripts
depends_on:
- hive-metastore-postgresql
healthcheck:
test: ["CMD", "sh", "-c", "/mnt/scripts/healthy_check.sh"]
interval: 5s
timeout: 60s
retries: 120
network_mode: "host"
hive-metastore-postgresql:
@ -99,3 +104,11 @@ services:
interval: 5s
timeout: 60s
retries: 120
hive-hello-world:
image: hello-world
container_name: ${CONTAINER_UID}hive2-hello-world
depends_on:
hive-metastore:
condition: service_healthy
network_mode: "host"

View File

@ -87,6 +87,11 @@ services:
- ./scripts:/mnt/scripts
depends_on:
- hive-metastore-postgresql
healthcheck:
test: ["CMD", "sh", "-c", "/mnt/scripts/healthy_check.sh"]
interval: 5s
timeout: 60s
retries: 120
network_mode: "host"
hive-metastore-postgresql:
@ -99,3 +104,11 @@ services:
interval: 5s
timeout: 60s
retries: 120
hive-hello-world:
image: hello-world
container_name: ${CONTAINER_UID}hive3-hello-world
depends_on:
hive-metastore:
condition: service_healthy
network_mode: "host"