Skip to content

Commit f9083e9

Browse files
committed
[HOTFIX] FIX JDBC QUICKSTART
1 parent b72214a commit f9083e9

File tree

2 files changed

+23
-12
lines changed

2 files changed

+23
-12
lines changed

getting-started/jdbc/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ This example requires `jq` to be installed on your machine.
4040
export QUARKUS_DATASOURCE_JDBC_URL=jdbc:postgresql://postgres:5432/POLARIS
4141
export QUARKUS_DATASOURCE_USERNAME=postgres
4242
export QUARKUS_DATASOURCE_PASSWORD=postgres
43+
export CLIENT_ID=root
44+
export CLIENT_SECRET=s3cr3t
4345
docker compose -f getting-started/jdbc/docker-compose-bootstrap-db.yml -f getting-started/assets/postgres/docker-compose-postgres.yml -f getting-started/jdbc/docker-compose.yml up
4446
```
4547

getting-started/jdbc/docker-compose.yml

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,22 @@ services:
2929
# Optional, allows attaching a debugger to the Polaris JVM
3030
- "5005:5005"
3131
environment:
32-
- JAVA_DEBUG=true
33-
- JAVA_DEBUG_PORT=*:5005
34-
- POLARIS_PERSISTENCE_TYPE=relational-jdbc
35-
- POLARIS_PERSISTENCE_RELATIONAL_JDBC_MAX_RETRIES=5
36-
- POLARIS_PERSISTENCE_RELATIONAL_JDBC_INITIAL_DELAY_IN_MS=100
37-
- POLARIS_PERSISTENCE_RELATIONAL_JDBC_MAX_DELAY_IN_MS=5000
38-
- QUARKUS_DATASOURCE_DB_KIND=pgsql
39-
- QUARKUS_DATASOURCE_JDBC_URL=${QUARKUS_DATASOURCE_JDBC_URL}
40-
- QUARKUS_DATASOURCE_USERNAME=${QUARKUS_DATASOURCE_USERNAME}
41-
- QUARKUS_DATASOURCE_PASSWORD=${QUARKUS_DATASOURCE_PASSWORD}
42-
- POLARIS_REALM_CONTEXT_REALMS=POLARIS
43-
- QUARKUS_OTEL_SDK_DISABLED=true
32+
JAVA_DEBUG: true
33+
JAVA_DEBUG_PORT: "*:5005"
34+
POLARIS_PERSISTENCE_TYPE: relational-jdbc
35+
POLARIS_PERSISTENCE_RELATIONAL_JDBC_MAX_RETRIES: 5
36+
POLARIS_PERSISTENCE_RELATIONAL_JDBC_INITIAL_DELAY_IN_MS: 100
37+
POLARIS_PERSISTENCE_RELATIONAL_JDBC_MAX_DELAY_IN_MS: 5000
38+
QUARKUS_DATASOURCE_DB_KIND: pgsql
39+
QUARKUS_DATASOURCE_JDBC_URL: $QUARKUS_DATASOURCE_JDBC_URL
40+
QUARKUS_DATASOURCE_USERNAME: $QUARKUS_DATASOURCE_USERNAME
41+
QUARKUS_DATASOURCE_PASSWORD: $QUARKUS_DATASOURCE_PASSWORD
42+
POLARIS_REALM_CONTEXT_REALMS: POLARIS
43+
QUARKUS_OTEL_SDK_DISABLED: true
44+
POLARIS_BOOTSTRAP_CREDENTIALS: POLARIS,${CLIENT_ID},${CLIENT_SECRET}
45+
polaris.features."ALLOW_INSECURE_STORAGE_TYPES": "true"
46+
polaris.features."SUPPORTED_CATALOG_STORAGE_TYPES": "[\"FILE\",\"S3\",\"GCS\",\"AZURE\"]"
47+
polaris.readiness.ignore-severe-issues: "true"
4448
healthcheck:
4549
test: ["CMD", "curl", "http://localhost:8182/q/health"]
4650
interval: 2s
@@ -57,6 +61,8 @@ services:
5761
- STORAGE_LOCATION=${STORAGE_LOCATION}
5862
- AWS_ROLE_ARN=${AWS_ROLE_ARN}
5963
- AZURE_TENANT_ID=${AZURE_TENANT_ID}
64+
- CLIENT_ID=${CLIENT_ID}
65+
- CLIENT_SECRET=${CLIENT_SECRET}
6066
volumes:
6167
- ../assets/polaris/:/polaris
6268
entrypoint: '/bin/sh -c "chmod +x /polaris/create-catalog.sh && /polaris/create-catalog.sh"'
@@ -98,5 +104,8 @@ services:
98104
tty: true
99105
ports:
100106
- "8080:8080"
107+
environment:
108+
- CLIENT_ID=${CLIENT_ID}
109+
- CLIENT_SECRET=${CLIENT_SECRET}
101110
volumes:
102111
- ../assets/trino-config/catalog:/etc/trino/catalog

0 commit comments

Comments
 (0)