-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml.back
More file actions
49 lines (46 loc) · 1.49 KB
/
docker-compose.yml.back
File metadata and controls
49 lines (46 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
version: "3.9"
services:
postgres:
image: postgres:16
container_name: hms-postgres
environment:
POSTGRES_DB: metastore
POSTGRES_USER: hms
POSTGRES_PASSWORD: hms_password
POSTGRES_INITDB_ARGS: "--auth-host=md5 --auth-local=md5"
command: ["postgres", "-c", "password_encryption=md5"]
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U hms -d metastore"]
interval: 10s
timeout: 5s
retries: 10
hive-metastore:
image: apache/hive:3.1.3
container_name: hive-metastore
depends_on:
postgres:
condition: service_healthy
environment:
SERVICE_NAME: metastore
DB_DRIVER: postgres
SERVICE_OPTS: >-
-Djavax.jdo.option.ConnectionDriverName=org.postgresql.Driver
-Djavax.jdo.option.ConnectionURL=jdbc:postgresql://postgres:5432/metastore
-Djavax.jdo.option.ConnectionUserName=hms
-Djavax.jdo.option.ConnectionPassword=hms_password
-Dhive.metastore.uris=thrift://0.0.0.0:9083
-Dlog4j2.configurationFile=file:/opt/hive/conf/log4j2.properties
ports:
- "9083:9083"
volumes:
- warehouse_data:/opt/hive/data/warehouse
# - ./hive/log4j2.properties:/opt/hive/conf/log4j2.properties:ro
# Optional if you want a newer PostgreSQL JDBC driver:
# - ./drivers/postgresql-42.7.4.jar:/opt/hive/lib/postgresql-42.7.4.jar:ro
volumes:
postgres_data:
warehouse_data: