Skip to content

Commit e927565

Browse files
committed
Update JDBC Getting-started example's README.md to use localhost for curl commands (#1872)
1 parent bfb3243 commit e927565

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

getting-started/jdbc/README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ This example requires `jq` to be installed on your machine.
6565
4. To access Polaris from the host machine, first request an access token:
6666
6767
```shell
68-
export POLARIS_TOKEN=$(curl -s http://polaris:8181/api/catalog/v1/oauth/tokens \
69-
--resolve polaris:8181:127.0.0.1 \
68+
export POLARIS_TOKEN=$(curl -s http://localhost:8181/api/catalog/v1/oauth/tokens \
7069
--user root:s3cr3t \
7170
-d 'grant_type=client_credentials' \
7271
-d 'scope=PRINCIPAL_ROLE:ALL' | jq -r .access_token)
@@ -75,8 +74,8 @@ This example requires `jq` to be installed on your machine.
7574
5. Then, use the access token in the Authorization header when accessing Polaris:
7675
7776
```shell
78-
curl -v http://127.0.0.1:8181/api/management/v1/principal-roles -H "Authorization: Bearer $POLARIS_TOKEN"
79-
curl -v http://127.0.0.1:8181/api/management/v1/catalogs/quickstart_catalog -H "Authorization: Bearer $POLARIS_TOKEN"
77+
curl -v http://localhost:8181/api/management/v1/principal-roles -H "Authorization: Bearer $POLARIS_TOKEN"
78+
curl -v http://localhost:8181/api/management/v1/catalogs/quickstart_catalog -H "Authorization: Bearer $POLARIS_TOKEN"
8079
```
8180
8281
6. Using Trino CLI: To access the Trino CLI, run this command:

0 commit comments

Comments
 (0)