Skip to content

Commit

Permalink
[Follow up] Trino getting started docker compose (apache#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinjqliu authored Sep 16, 2024
1 parent 725c68b commit a8a1f6c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions getting-started/trino/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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-trino.yml up
docker-compose -f getting-started/trino/docker-compose.yml up
```

## Run Trino queries via Trino ClI
To access the Trino CLI, run this command
## Run Trino queries via Trino CLI
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:
```
Expand All @@ -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.
File renamed without changes.

0 comments on commit a8a1f6c

Please sign in to comment.