From 5a447011ee6303b913c1b068fb26656007900961 Mon Sep 17 00:00:00 2001 From: Kevin Liu Date: Mon, 16 Sep 2024 11:25:01 -0700 Subject: [PATCH 1/2] fix trino --- getting-started/trino/README.md | 4 ++-- .../trino/{docker-compose-trino.yml => docker-compose.yml} | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename getting-started/trino/{docker-compose-trino.yml => docker-compose.yml} (100%) diff --git a/getting-started/trino/README.md b/getting-started/trino/README.md index 91031340f9..c34668679f 100644 --- a/getting-started/trino/README.md +++ b/getting-started/trino/README.md @@ -24,10 +24,10 @@ This getting started guide provides a docker-compose file to set up [Trino](http ## Run the docker-compose file To start the docker-compose file, run this command from the repo's root directory: ``` -docker-compose -f getting-started/trino/docker-compose-trino.yml up +docker-compose -f getting-started/trino/docker-compose.yml up ``` -## Run Trino queries via Trino ClI +## Run Trino queries via Trino CLI To access the Trino CLI, run this command ``` docker exec -it trino-trino-1 trino diff --git a/getting-started/trino/docker-compose-trino.yml b/getting-started/trino/docker-compose.yml similarity index 100% rename from getting-started/trino/docker-compose-trino.yml rename to getting-started/trino/docker-compose.yml From 91862a114dec9defd6cf5dc7c021d08935394d38 Mon Sep 17 00:00:00 2001 From: Kevin Liu Date: Mon, 16 Sep 2024 11:39:35 -0700 Subject: [PATCH 2/2] grammar --- getting-started/trino/README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/getting-started/trino/README.md b/getting-started/trino/README.md index c34668679f..c4f99b08ab 100644 --- a/getting-started/trino/README.md +++ b/getting-started/trino/README.md @@ -19,20 +19,20 @@ # Getting Started with Trino and Apache Polaris -This getting started guide provides a docker-compose file to set up [Trino](https://trino.io/) with Apache Polaris. Apache Polaris is configured as an Iceberg REST Catalog in Trino. +This getting started guide provides a `docker-compose` file to set up [Trino](https://trino.io/) with Apache Polaris. Apache Polaris is configured as an Iceberg REST Catalog in Trino. -## Run the docker-compose file -To start the docker-compose file, run this command from the repo's root directory: +## Run the `docker-compose` file +To start the `docker-compose` file, run this command from the repo's root directory: ``` docker-compose -f getting-started/trino/docker-compose.yml up ``` ## Run Trino queries via Trino CLI -To access the Trino CLI, run this command +To access the Trino CLI, run this command: ``` docker exec -it trino-trino-1 trino ``` -Note, `trino-trino-1` is the name docker container. +Note, `trino-trino-1` is the name of the Docker container. Example Trino queries: ``` @@ -47,6 +47,6 @@ SELECT * FROM iceberg.tpch.test_polaris; ``` ## Note -The polaris catalog setup script use the credential `principal:root;realm:default-realm`. This credential is used so users do not need to fetch credentials from Apache Polaris' console output. +The Polaris catalog setup script uses the credential `principal:root;realm:default-realm`. This credential is used so users do not need to fetch credentials from Apache Polaris' console output. An example catalog is created in Apache Polaris using the `curl` command. See `create-polaris-catalog.sh` for details.