This is an automated email from the ASF dual-hosted git repository.

yufei pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris.git


The following commit(s) were added to refs/heads/main by this push:
     new 2dfdac315 Fix telemetry quickstart example for 1.0 release (#1873)
2dfdac315 is described below

commit 2dfdac315ab7029807892cf2fdf06522f3b03c67
Author: William Hyun <will...@apache.org>
AuthorDate: Wed Jun 11 17:55:28 2025 -0700

    Fix telemetry quickstart example for 1.0 release (#1873)
---
 getting-started/telemetry/README.md          | 10 ++++++----
 getting-started/telemetry/docker-compose.yml | 11 +++++++++--
 2 files changed, 15 insertions(+), 6 deletions(-)

diff --git a/getting-started/telemetry/README.md 
b/getting-started/telemetry/README.md
index 6add2ae9a..3e3221b8c 100644
--- a/getting-started/telemetry/README.md
+++ b/getting-started/telemetry/README.md
@@ -33,14 +33,16 @@ This example requires `jq` to be installed on your machine.
 2. Start the docker compose group by running the following command from the 
root of the repository:
 
     ```shell
+    export ASSETS_PATH=$(pwd)/getting-started/assets/
+    export CLIENT_ID=root
+    export CLIENT_SECRET=s3cr3t
     docker compose -f getting-started/telemetry/docker-compose.yml up
     ```
 
 3. To access Polaris from the host machine, first request an access token:
 
     ```shell
-    export POLARIS_TOKEN=$(curl -s 
http://polaris:8181/api/catalog/v1/oauth/tokens \
-       --resolve polaris:8181:127.0.0.1 \
+    export POLARIS_TOKEN=$(curl -s 
http://localhost:8181/api/catalog/v1/oauth/tokens \
        --user root:s3cr3t \
        -d 'grant_type=client_credentials' \
        -d 'scope=PRINCIPAL_ROLE:ALL' | jq -r .access_token)
@@ -50,10 +52,10 @@ This example requires `jq` to be installed on your machine.
    the `Polairs-Request-Id` header; you should see it in all logs and traces:
 
     ```shell
-    curl -v http://127.0.0.1:8181/api/management/v1/principal-roles \
+    curl -v 'http://localhost:8181/api/management/v1/principal-roles' \
       -H "Authorization: Bearer $POLARIS_TOKEN" \
       -H "Polaris-Request-Id: 1234"
-    curl -v http://127.0.0.1:8181/api/catalog/v1/config?warehouse=polaris_demo 
\
+    curl -v 
'http://localhost:8181/api/catalog/v1/config?warehouse=quickstart_catalog' \
       -H "Authorization: Bearer $POLARIS_TOKEN" \
       -H "Polaris-Request-Id: 5678"
     ```
diff --git a/getting-started/telemetry/docker-compose.yml 
b/getting-started/telemetry/docker-compose.yml
index 74e8c2b9f..0d0c6f612 100644
--- a/getting-started/telemetry/docker-compose.yml
+++ b/getting-started/telemetry/docker-compose.yml
@@ -30,11 +30,15 @@ services:
       jaeger:
         condition: service_healthy
     environment:
-      POLARIS_BOOTSTRAP_CREDENTIALS: POLARIS,root,s3cr3t
+      POLARIS_BOOTSTRAP_CREDENTIALS: POLARIS,${CLIENT_ID},${CLIENT_SECRET}
       quarkus.otel.exporter.otlp.endpoint: http://jaeger:4317
       # Resource attributes (added to all traces)
       quarkus.otel.resource.attributes[0]: polaris.app=polaris-getting-started
       quarkus.otel.resource.attributes[1]: polaris.env=dev
+
+      polaris.features."ALLOW_INSECURE_STORAGE_TYPES": "true"
+      polaris.features."SUPPORTED_CATALOG_STORAGE_TYPES": 
"[\"FILE\",\"S3\",\"GCS\",\"AZURE\"]"
+      polaris.readiness.ignore-severe-issues: "true"
       # Custom metrics (added to all requests)
       polaris.metrics.tags.app: polaris-getting-started
       polaris.metrics.tags.env: dev
@@ -55,8 +59,11 @@ services:
     depends_on:
       polaris:
         condition: service_healthy
+    environment:
+      - CLIENT_ID=${CLIENT_ID}
+      - CLIENT_SECRET=${CLIENT_SECRET}
     volumes:
-      - ../assets/polaris/:/polaris
+      - ${ASSETS_PATH}/polaris/:/polaris
     entrypoint: '/bin/sh -c "chmod +x /polaris/create-catalog.sh && 
/polaris/create-catalog.sh"'
 
   prometheus:

Reply via email to