Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions module5-batch-processing/compose.spark-4.1-standalone.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
x-spark-image: &spark-image apache/spark:${SPARK_VERSION:-4.1.1-scala2.13-java21-python3-ubuntu}
x-hive-image: &hive-image apache/hive:${HIVE_VERSION:-4.2.0}
x-postgres-image: &postgres-image postgres:${POSTGRES_VERSION:-18.1-alpine}
x-postgres-image: &postgres-image postgres:${POSTGRES_VERSION:-18-alpine}

x-spark-common:
&spark-common
Expand Down Expand Up @@ -103,15 +103,15 @@ services:
image: *postgres-image
container_name: hive-metastore-db
environment:
POSTGRES_USER: 'postgres'
POSTGRES_PASSWORD: 'postgres'
POSTGRES_USER: 'hive'
POSTGRES_PASSWORD: 'hive'
POSTGRES_DB: 'metastore'
ports:
- '5433:5432'
volumes:
- vol-hive-db:/var/lib/postgresql/data
- vol-hive-db:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER"]
interval: 5s
timeout: 5s
retries: 5
Expand All @@ -125,8 +125,8 @@ services:
SERVICE_OPTS: |-
-Djavax.jdo.option.ConnectionDriverName=org.postgresql.Driver
-Djavax.jdo.option.ConnectionURL=jdbc:postgresql://hive-db:5432/metastore
-Djavax.jdo.option.ConnectionUserName=postgres
-Djavax.jdo.option.ConnectionPassword=postgres
-Djavax.jdo.option.ConnectionUserName=hive
-Djavax.jdo.option.ConnectionPassword=hive
HIVE_AUX_JARS_PATH: /opt/hive/aux_jars/
DB_DRIVER: 'postgres'
ports:
Expand Down