Skip to content

Commit

Permalink
change hive3 to bridge
Browse files Browse the repository at this point in the history
  • Loading branch information
suxiaogang223 committed Apr 7, 2024
1 parent b698f8f commit e096687
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions docker/thirdparties/docker-compose/hive/hive-3x.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,15 @@ services:
env_file:
- ./hadoop-hive.env
container_name: doris--namenode
ports:
- "9870:9870"
- "9820:9820"
expose:
- "9870"
- "8020"
healthcheck:
test: [ "CMD", "curl", "http://localhost:9870/" ]
interval: 5s
timeout: 120s
retries: 120
network_mode: "host"

doris--datanode:
image: bde2020/hadoop-datanode:2.0.0-hadoop3.2.1-java8
Expand All @@ -42,13 +43,14 @@ services:
environment:
SERVICE_PRECONDITION: "externalEnvIp:9870"
container_name: doris--datanode
ports:
- "9864:9864"
expose:
- "9864"
healthcheck:
test: [ "CMD", "curl", "http://localhost:9864" ]
interval: 5s
timeout: 60s
retries: 120
network_mode: "host"

doris--hive-server:
image: lishizhen/hive:3.1.2-postgresql-metastore
Expand All @@ -58,8 +60,8 @@ services:
HIVE_CORE_CONF_javax_jdo_option_ConnectionURL: "jdbc:postgresql://externalEnvIp:5432/metastore"
SERVICE_PRECONDITION: "externalEnvIp:9083"
container_name: doris--hive-server
ports:
- "10000:10000"
expose:
- "10000"
depends_on:
- doris--datanode
- doris--namenode
Expand All @@ -68,6 +70,7 @@ services:
interval: 10s
timeout: 120s
retries: 120
network_mode: "host"


doris--hive-metastore:
Expand All @@ -79,21 +82,23 @@ services:
environment:
SERVICE_PRECONDITION: "externalEnvIp:9870 externalEnvIp:9864 externalEnvIp:5432"
container_name: doris--hive-metastore
ports:
- "9083:9083"
expose:
- "9083"
volumes:
- ./scripts:/mnt/scripts
depends_on:
- doris--hive-metastore-postgresql
network_mode: "host"

doris--hive-metastore-postgresql:
image: bde2020/hive-metastore-postgresql:3.1.0
restart: always
container_name: doris--hive-metastore-postgresql
ports:
- "5432:5432"
expose:
- "5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 60s
retries: 120
retries: 120
network_mode: "host"

0 comments on commit e096687

Please sign in to comment.