Skip to content

Commit 4d366ae

Browse files
author
bennsimon
committed
apply feedback
1 parent b72ae80 commit 4d366ae

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

docker/compose-controller-spark-sql-external-storage.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ services:
8989
- '4041:4040'
9090
volumes:
9191
- ${DWH_ROOT}:/dwh
92-
- ./drivers-build/hive-site_example.xml:/opt/bitnami/spark/conf/hive-site.xml
92+
- ./hive-site_example.xml:/opt/bitnami/spark/conf/hive-site.xml
9393
volumes_from:
9494
- drivers-build
9595

docker/drivers-build/Dockerfile

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
1-
FROM busybox:1.36
2-
COPY postgresql-42.6.0.jar /jdbcDrivers/
1+
FROM alpine:3.17.3
2+
3+
WORKDIR /jdbcDrivers
4+
5+
ARG POSTGRESQL_DRIVER_VERSION=42.6.0
6+
7+
# Install required packages
8+
RUN apk update && apk add curl
9+
10+
# Fetch drivers
11+
RUN curl -s https://jdbc.postgresql.org/download/postgresql-$POSTGRESQL_DRIVER_VERSION.jar \
12+
-o postgresql-$POSTGRESQL_DRIVER_VERSION.jar

docker/hive-site_example.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ https://cwiki.apache.org/confluence/display/Hive/Configuration+Properties#Config
1717
<!-- This setup assumes that custom_metastore_db is already created. -->
1818
<!-- The IP address should be adjusted based on how the thriftserver sees
1919
the external DB; this example is for a docker image on Linux. -->
20-
<value>jdbc:postgresql://172.18.0.1:5432/custom_metastore_db</value>
20+
<!-- value>jdbc:postgresql://172.18.0.1:5432/custom_metastore_db</value -->
21+
<value>jdbc:postgresql://postgres:5432/custom_metastore_db</value>
2122
<!-- value>jdbc:postgresql://localhost:5432/custom_metastore_db</value -->
2223
</property>
2324
<property>

0 commit comments

Comments
 (0)