You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@polaris.apache.org by ho...@apache.org on 2025/06/12 18:11:39 UTC

(polaris) branch release/1.0.x updated (bfb3243a5 -> d95935b2e)

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

honahx pushed a change to branch release/1.0.x
in repository https://gitbox.apache.org/repos/asf/polaris.git


    from bfb3243a5 Update LICENSE for binary distributions (#1855)
     new e927565ce Update JDBC Getting-started example's README.md to use localhost for curl commands (#1872)
     new d95935b2e Enhance EclipseLink quickstart (#1870)

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 getting-started/eclipselink/README.md          | 15 +++++++--------
 getting-started/eclipselink/docker-compose.yml |  6 +++---
 getting-started/jdbc/README.md                 |  7 +++----
 3 files changed, 13 insertions(+), 15 deletions(-)


(polaris) 01/02: Update JDBC Getting-started example's README.md to use localhost for curl commands (#1872)

Posted by ho...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

honahx pushed a commit to branch release/1.0.x
in repository https://gitbox.apache.org/repos/asf/polaris.git

commit e927565ceda83b58cbc6939950e4ec8742b9d236
Author: Honah (Jonas) J. <ho...@apache.org>
AuthorDate: Wed Jun 11 14:27:52 2025 -0700

    Update JDBC Getting-started example's README.md to use localhost for curl commands (#1872)
---
 getting-started/jdbc/README.md | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/getting-started/jdbc/README.md b/getting-started/jdbc/README.md
index 0d562094c..49b02de2d 100644
--- a/getting-started/jdbc/README.md
+++ b/getting-started/jdbc/README.md
@@ -65,8 +65,7 @@ This example requires `jq` to be installed on your machine.
 4. 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)
@@ -75,8 +74,8 @@ This example requires `jq` to be installed on your machine.
 5. Then, use the access token in the Authorization header when accessing Polaris:
 
     ```shell
-    curl -v http://127.0.0.1:8181/api/management/v1/principal-roles -H "Authorization: Bearer $POLARIS_TOKEN"
-    curl -v http://127.0.0.1:8181/api/management/v1/catalogs/quickstart_catalog -H "Authorization: Bearer $POLARIS_TOKEN"
+    curl -v http://localhost:8181/api/management/v1/principal-roles -H "Authorization: Bearer $POLARIS_TOKEN"
+    curl -v http://localhost:8181/api/management/v1/catalogs/quickstart_catalog -H "Authorization: Bearer $POLARIS_TOKEN"
     ```
 
 6. Using Trino CLI: To access the Trino CLI, run this command:


(polaris) 02/02: Enhance EclipseLink quickstart (#1870)

Posted by ho...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

honahx pushed a commit to branch release/1.0.x
in repository https://gitbox.apache.org/repos/asf/polaris.git

commit d95935b2edc8ce446de08290962136b00330131f
Author: Honah (Jonas) J. <ho...@apache.org>
AuthorDate: Wed Jun 11 15:55:40 2025 -0700

    Enhance EclipseLink quickstart (#1870)
    
    1. Update the name catalog name used to `quickstart_catalog` from `polaris` to make it consistent
    2. Update the name of `eclipselink-trino-1` to `polaris-trino-1`
    3. make the polaris server url consistent with using `localhost` to avoid failures
---
 getting-started/eclipselink/README.md          | 15 +++++++--------
 getting-started/eclipselink/docker-compose.yml |  6 +++---
 2 files changed, 10 insertions(+), 11 deletions(-)

diff --git a/getting-started/eclipselink/README.md b/getting-started/eclipselink/README.md
index ed5e5be3f..a9ae12cbd 100644
--- a/getting-started/eclipselink/README.md
+++ b/getting-started/eclipselink/README.md
@@ -54,8 +54,8 @@ This example requires `jq` to be installed on your machine.
    You may not see Spark's prompt immediately, type ENTER to see it. A few commands that you can try:
 
     ```sql
-    CREATE NAMESPACE polaris.ns1;
-    USE polaris.ns1;
+    CREATE NAMESPACE quickstart_catalog.ns1;
+    USE quickstart_catalog.ns1;
     CREATE TABLE table1 (id int, name string);
     INSERT INTO table1 VALUES (1, 'a');
     SELECT * FROM table1;
@@ -64,8 +64,7 @@ This example requires `jq` to be installed on your machine.
 4. 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)
@@ -74,15 +73,15 @@ This example requires `jq` to be installed on your machine.
 5. Then, use the access token in the Authorization header when accessing Polaris:
 
     ```shell
-    curl -v http://127.0.0.1:8181/api/management/v1/principal-roles -H "Authorization: Bearer $POLARIS_TOKEN"
-    curl -v http://127.0.0.1:8181/api/management/v1/catalogs/quickstart_catalog -H "Authorization: Bearer $POLARIS_TOKEN"
+    curl -v http://localhost:8181/api/management/v1/principal-roles -H "Authorization: Bearer $POLARIS_TOKEN"
+    curl -v http://localhost:8181/api/management/v1/catalogs/quickstart_catalog -H "Authorization: Bearer $POLARIS_TOKEN"
     ```
 
 6. Using Trino CLI: To access the Trino CLI, run this command:
 ```
-docker exec -it eclipselink-trino-1 trino
+docker exec -it polaris-trino-1 trino
 ```
-Note, `trino-trino-1` is the name of the Docker container.
+Note, `polaris-trino-1` is the name of the Docker container. The actual name on your system may vary.
 
 Example Trino queries:
 ```
diff --git a/getting-started/eclipselink/docker-compose.yml b/getting-started/eclipselink/docker-compose.yml
index 94db4b92a..c438d1fa2 100644
--- a/getting-started/eclipselink/docker-compose.yml
+++ b/getting-started/eclipselink/docker-compose.yml
@@ -85,7 +85,7 @@ services:
       --conf, "spark.sql.catalog.quickstart_catalog.type=rest",
       --conf, "spark.sql.catalog.quickstart_catalog.warehouse=quickstart_catalog",
       --conf, "spark.sql.catalog.quickstart_catalog.uri=http://polaris:8181/api/catalog",
-      --conf, "spark.sql.catalog.quickstart_catalog.credential=${USER_CLIENT_ID}:${USER_CLIENT_SECRET}",
+      --conf, "spark.sql.catalog.quickstart_catalog.credential=${CLIENT_ID}:${CLIENT_SECRET}",
       --conf, "spark.sql.catalog.quickstart_catalog.scope=PRINCIPAL_ROLE:ALL",
       --conf, "spark.sql.defaultCatalog=quickstart_catalog",
       --conf, "spark.sql.catalogImplementation=in-memory",
@@ -98,8 +98,8 @@ services:
       polaris-setup:
         condition: service_completed_successfully
     environment:
-      - CLIENT_ID=${USER_CLIENT_ID}
-      - CLIENT_SECRET=${USER_CLIENT_SECRET}
+      - CLIENT_ID=${CLIENT_ID}
+      - CLIENT_SECRET=${CLIENT_SECRET}
     stdin_open: true
     tty: true
     ports: