|
|
@ -23,15 +23,16 @@ services: |
|
|
|
environment: |
|
|
|
environment: |
|
|
|
MASTER_MAX_CPU_LOAD_AVG: 100 |
|
|
|
MASTER_MAX_CPU_LOAD_AVG: 100 |
|
|
|
WORKER_TENANT_AUTO_CREATE: 'true' |
|
|
|
WORKER_TENANT_AUTO_CREATE: 'true' |
|
|
|
expose: |
|
|
|
ports: |
|
|
|
- 12345 |
|
|
|
- "12345:12345" |
|
|
|
networks: |
|
|
|
networks: |
|
|
|
- e2e |
|
|
|
- e2e |
|
|
|
healthcheck: |
|
|
|
healthcheck: |
|
|
|
test: [ "CMD", "curl", "http://localhost:12345/actuator/health" ] |
|
|
|
test: [ "CMD", "curl", "http://localhost:12345/actuator/health" ] |
|
|
|
interval: 5s |
|
|
|
interval: 5s |
|
|
|
timeout: 300s |
|
|
|
timeout: 5s |
|
|
|
retries: 120 |
|
|
|
retries: 120 |
|
|
|
|
|
|
|
start_period: 60s |
|
|
|
depends_on: |
|
|
|
depends_on: |
|
|
|
hive-server: |
|
|
|
hive-server: |
|
|
|
condition: service_healthy |
|
|
|
condition: service_healthy |
|
|
@ -43,12 +44,12 @@ services: |
|
|
|
- ./hadoop-hive.env |
|
|
|
- ./hadoop-hive.env |
|
|
|
networks: |
|
|
|
networks: |
|
|
|
- e2e |
|
|
|
- e2e |
|
|
|
expose: |
|
|
|
ports: |
|
|
|
- "50070" |
|
|
|
- "50070:50070" |
|
|
|
healthcheck: |
|
|
|
healthcheck: |
|
|
|
test: [ "CMD", "curl", "http://localhost:50070/" ] |
|
|
|
test: [ "CMD", "curl", "http://localhost:50070/" ] |
|
|
|
interval: 5s |
|
|
|
interval: 5s |
|
|
|
timeout: 300s |
|
|
|
timeout: 5s |
|
|
|
retries: 120 |
|
|
|
retries: 120 |
|
|
|
datanode: |
|
|
|
datanode: |
|
|
|
image: bde2020/hadoop-datanode:2.0.0-hadoop2.7.4-java8 |
|
|
|
image: bde2020/hadoop-datanode:2.0.0-hadoop2.7.4-java8 |
|
|
@ -58,12 +59,12 @@ services: |
|
|
|
SERVICE_PRECONDITION: "namenode:50070" |
|
|
|
SERVICE_PRECONDITION: "namenode:50070" |
|
|
|
networks: |
|
|
|
networks: |
|
|
|
- e2e |
|
|
|
- e2e |
|
|
|
expose: |
|
|
|
ports: |
|
|
|
- "50075" |
|
|
|
- "50075:50075" |
|
|
|
healthcheck: |
|
|
|
healthcheck: |
|
|
|
test: [ "CMD", "curl", "http://localhost:50075" ] |
|
|
|
test: [ "CMD", "curl", "http://localhost:50075" ] |
|
|
|
interval: 5s |
|
|
|
interval: 5s |
|
|
|
timeout: 300s |
|
|
|
timeout: 5s |
|
|
|
retries: 120 |
|
|
|
retries: 120 |
|
|
|
hive-server: |
|
|
|
hive-server: |
|
|
|
image: bde2020/hive:2.3.2-postgresql-metastore |
|
|
|
image: bde2020/hive:2.3.2-postgresql-metastore |
|
|
@ -74,8 +75,8 @@ services: |
|
|
|
environment: |
|
|
|
environment: |
|
|
|
HIVE_CORE_CONF_javax_jdo_option_ConnectionURL: "jdbc:postgresql://hive-metastore/metastore" |
|
|
|
HIVE_CORE_CONF_javax_jdo_option_ConnectionURL: "jdbc:postgresql://hive-metastore/metastore" |
|
|
|
SERVICE_PRECONDITION: "hive-metastore:9083" |
|
|
|
SERVICE_PRECONDITION: "hive-metastore:9083" |
|
|
|
expose: |
|
|
|
ports: |
|
|
|
- "10000" |
|
|
|
- "10000:10000" |
|
|
|
depends_on: |
|
|
|
depends_on: |
|
|
|
datanode: |
|
|
|
datanode: |
|
|
|
condition: service_healthy |
|
|
|
condition: service_healthy |
|
|
@ -84,7 +85,7 @@ services: |
|
|
|
healthcheck: |
|
|
|
healthcheck: |
|
|
|
test: beeline -u "jdbc:hive2://127.0.0.1:10000/default" -n health_check -e "show databases;" |
|
|
|
test: beeline -u "jdbc:hive2://127.0.0.1:10000/default" -n health_check -e "show databases;" |
|
|
|
interval: 5s |
|
|
|
interval: 5s |
|
|
|
timeout: 300s |
|
|
|
timeout: 5s |
|
|
|
retries: 120 |
|
|
|
retries: 120 |
|
|
|
hive-metastore: |
|
|
|
hive-metastore: |
|
|
|
image: bde2020/hive:2.3.2-postgresql-metastore |
|
|
|
image: bde2020/hive:2.3.2-postgresql-metastore |
|
|
@ -95,8 +96,8 @@ services: |
|
|
|
- e2e |
|
|
|
- e2e |
|
|
|
environment: |
|
|
|
environment: |
|
|
|
SERVICE_PRECONDITION: "namenode:50070 datanode:50075 hive-metastore-postgresql:5432" |
|
|
|
SERVICE_PRECONDITION: "namenode:50070 datanode:50075 hive-metastore-postgresql:5432" |
|
|
|
expose: |
|
|
|
ports: |
|
|
|
- "9083" |
|
|
|
- "9083:9083" |
|
|
|
depends_on: |
|
|
|
depends_on: |
|
|
|
hive-metastore-postgresql: |
|
|
|
hive-metastore-postgresql: |
|
|
|
condition: service_healthy |
|
|
|
condition: service_healthy |
|
|
@ -104,12 +105,12 @@ services: |
|
|
|
image: bde2020/hive-metastore-postgresql:2.3.0 |
|
|
|
image: bde2020/hive-metastore-postgresql:2.3.0 |
|
|
|
networks: |
|
|
|
networks: |
|
|
|
- e2e |
|
|
|
- e2e |
|
|
|
expose: |
|
|
|
ports: |
|
|
|
- "5432" |
|
|
|
- "5432:5432" |
|
|
|
healthcheck: |
|
|
|
healthcheck: |
|
|
|
test: ["CMD-SHELL", "pg_isready -U postgres"] |
|
|
|
test: ["CMD-SHELL", "pg_isready -U postgres"] |
|
|
|
interval: 5s |
|
|
|
interval: 5s |
|
|
|
timeout: 300s |
|
|
|
timeout: 5s |
|
|
|
retries: 120 |
|
|
|
retries: 120 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|