From 2e336cbf38fad2c379d8adc10cc769f436557b3f Mon Sep 17 00:00:00 2001 From: Marco Date: Wed, 17 Sep 2025 14:30:13 +0000 Subject: [PATCH 01/16] latest --- docs/src/user-docs/guides-using-presto.md | 73 ++++++++++++++++------- 1 file changed, 50 insertions(+), 23 deletions(-) diff --git a/docs/src/user-docs/guides-using-presto.md b/docs/src/user-docs/guides-using-presto.md index 48ea7a00a8..b90ce40d7d 100644 --- a/docs/src/user-docs/guides-using-presto.md +++ b/docs/src/user-docs/guides-using-presto.md @@ -31,29 +31,53 @@ Using Presto with CLP requires: ### Setting up CLP -1. Follow the [quick-start](quick-start/index.md) guide to download and extract the CLP package, - but don't start the package just yet. -2. Before starting the package, update the package's config as follows: - - * Open `etc/clp-config.yml` located within the package. - * Uncomment the `database` section. - * Change `database.host` value to a non-localhost hostname/IP. - * After the change, the `database` section should look something like this: - - ```yaml - database: - type: "mariadb" # "mariadb" or "mysql" - host: "" - port: 3306 - name: "clp-db" - ``` +1. Follow the [quick-start](quick-start/index.md) guide to download and extract the CLP package, but don't start the package just yet. +2. Update the package configuration (`etc/clp-config.yml`) before starting CLP: + + **Database settings** + Uncomment the database section and change `database.host` to a non-localhost hostname/IP: + + ```yaml + database: + type: "mariadb" # "mariadb" or "mysql" + host: "" + port: 3306 + name: "clp-db" + ``` + + :::{note} + This change is necessary since the Presto containers run on a Docker network, whereas CLP's database runs on the host network. So localhost refers to two different entities. + ::: - :::{note} - This change is necessary since the Presto containers run on a Docker network, whereas CLP's - database runs on the host network. So `localhost` refers to two different entities in those - networks. This limitation will be addressed in the future when we unify Presto and CLP's - deployment infrastructure. - ::: + **Query engine** + Enable Presto by setting the query engine: + + ```yaml + package: + storage_engine: "clp-s" + query_engine: "presto" + ``` + + **Results cache** + Disable automatic deletion of results: + + ```yaml + results_cache: + host: "localhost" + port: 27017 + db_name: "clp-query-results" + stream_collection_name: "stream-files" + retention_period: null + ``` + + **Presto client config** + Provide host and port for Presto: + + ```yaml + presto: + host: "localhost" + port: 8889 + ``` 3. If you'd like to store your compressed logs on S3, follow the [using object storage](guides-using-object-storage/index.md) guide. @@ -138,7 +162,10 @@ docker compose rm ## Querying your logs through Presto -To query your logs through Presto, you can use the Presto CLI: +To query your logs through Presto, you can use either: + +* The WebUI available at http://localhost:4000, or +* The Presto CLI: ```bash docker compose exec presto-coordinator \ From 828f55cab4aae9e69ad3d2c68a75e5ce267b490d Mon Sep 17 00:00:00 2001 From: Marco Date: Wed, 17 Sep 2025 15:55:02 +0000 Subject: [PATCH 02/16] latest --- docs/src/user-docs/guides-using-presto.md | 81 ++++++++++++----------- 1 file changed, 41 insertions(+), 40 deletions(-) diff --git a/docs/src/user-docs/guides-using-presto.md b/docs/src/user-docs/guides-using-presto.md index b90ce40d7d..d0b10271e0 100644 --- a/docs/src/user-docs/guides-using-presto.md +++ b/docs/src/user-docs/guides-using-presto.md @@ -32,52 +32,52 @@ Using Presto with CLP requires: ### Setting up CLP 1. Follow the [quick-start](quick-start/index.md) guide to download and extract the CLP package, but don't start the package just yet. -2. Update the package configuration (`etc/clp-config.yml`) before starting CLP: +2. Before starting the package, update the config (`etc/clp-config.yml`) as follows: - **Database settings** - Uncomment the database section and change `database.host` to a non-localhost hostname/IP: + * Set the `package.query_engine` key to `"presto"`. - ```yaml - database: - type: "mariadb" # "mariadb" or "mysql" - host: "" - port: 3306 - name: "clp-db" - ``` - - :::{note} - This change is necessary since the Presto containers run on a Docker network, whereas CLP's database runs on the host network. So localhost refers to two different entities. - ::: - - **Query engine** - Enable Presto by setting the query engine: + ```yaml + package: + storage_engine: "clp-s" + query_engine: "presto" + ``` - ```yaml - package: - storage_engine: "clp-s" - query_engine: "presto" - ``` + * Set the `database.host` key to a non-localhost hostname/IP. - **Results cache** - Disable automatic deletion of results: + ```yaml + database: + # type: "mariadb" + host: + # port: 3306 + # name: "clp-db" + ``` - ```yaml - results_cache: - host: "localhost" - port: 27017 - db_name: "clp-query-results" - stream_collection_name: "stream-files" - retention_period: null - ``` + :::{note} + This change is necessary since the Presto containers run on a Docker network, whereas CLP's database runs on the host network. So localhost refers to two different entities. + ::: + + * Set the `results_cache.retention_period` key to `null`. The CLP presto integration does not + yet provide support for garbage collection. + + ```yaml + results_cache: + # host: "localhost" + # port: 27017 + # db_name: "clp-query-results" + # stream_collection_name: "stream-files" + # + # # Retention for search results, in minutes. Set to null to disable automatic deletion. + retention_period: null + ``` - **Presto client config** - Provide host and port for Presto: + * Update `presto` key with host and port of the Presto cluster. If you follow the + [Setting up Presto](#setting-up-presto) guide, the host is `localhost` and the port is `8889`. The Presto cluster does not need to be running to start the package. - ```yaml - presto: - host: "localhost" - port: 8889 - ``` + ```yaml + presto: + host: + port: + ``` 3. If you'd like to store your compressed logs on S3, follow the [using object storage](guides-using-object-storage/index.md) guide. @@ -164,7 +164,8 @@ docker compose rm To query your logs through Presto, you can use either: -* The WebUI available at http://localhost:4000, or +* The WebUI available at [http://localhost:4000](http://localhost:4000) (if you changed +`webui.host` or `webui.port` in `etc/clp-config.yml`, use the new values) * The Presto CLI: ```bash From d38cbe77abafc574a868e38805687ed27d23fe81 Mon Sep 17 00:00:00 2001 From: Marco Date: Wed, 17 Sep 2025 15:58:24 +0000 Subject: [PATCH 03/16] latest --- docs/src/user-docs/guides-using-presto.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/src/user-docs/guides-using-presto.md b/docs/src/user-docs/guides-using-presto.md index d0b10271e0..ab4dc87d10 100644 --- a/docs/src/user-docs/guides-using-presto.md +++ b/docs/src/user-docs/guides-using-presto.md @@ -31,7 +31,8 @@ Using Presto with CLP requires: ### Setting up CLP -1. Follow the [quick-start](quick-start/index.md) guide to download and extract the CLP package, but don't start the package just yet. +1. Follow the [quick-start](quick-start/index.md) guide to download and extract the CLP package, + but don't start the package just yet. 2. Before starting the package, update the config (`etc/clp-config.yml`) as follows: * Set the `package.query_engine` key to `"presto"`. From 83c90164bada9a5d07c6f4114e343775deaaeb9b Mon Sep 17 00:00:00 2001 From: davemarco <83603688+davemarco@users.noreply.github.com> Date: Fri, 19 Sep 2025 11:38:51 -0400 Subject: [PATCH 04/16] Apply suggestions from code review Co-authored-by: Quinn Taylor Mitchell --- docs/src/user-docs/guides-using-presto.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/docs/src/user-docs/guides-using-presto.md b/docs/src/user-docs/guides-using-presto.md index ab4dc87d10..10a24c2695 100644 --- a/docs/src/user-docs/guides-using-presto.md +++ b/docs/src/user-docs/guides-using-presto.md @@ -33,7 +33,7 @@ Using Presto with CLP requires: 1. Follow the [quick-start](quick-start/index.md) guide to download and extract the CLP package, but don't start the package just yet. -2. Before starting the package, update the config (`etc/clp-config.yml`) as follows: +2. Before starting the package, update the package's config file (`etc/clp-config.yml`) as follows: * Set the `package.query_engine` key to `"presto"`. @@ -54,11 +54,13 @@ Using Presto with CLP requires: ``` :::{note} - This change is necessary since the Presto containers run on a Docker network, whereas CLP's database runs on the host network. So localhost refers to two different entities. + This change is necessary because the Presto containers run on a Docker network, and CLP's + database runs on the host network. `localhost` will refer to a different entity in each of + those contexts. ::: - * Set the `results_cache.retention_period` key to `null`. The CLP presto integration does not - yet provide support for garbage collection. + * Set the `results_cache.retention_period` key to `null`. The CLP + Presto integration does not + yet provide support for garbage collection. ```yaml results_cache: @@ -71,8 +73,9 @@ Using Presto with CLP requires: retention_period: null ``` - * Update `presto` key with host and port of the Presto cluster. If you follow the - [Setting up Presto](#setting-up-presto) guide, the host is `localhost` and the port is `8889`. The Presto cluster does not need to be running to start the package. + * Update the `presto` key with the host and port of the Presto cluster. If you follow the + [Setting up Presto](#setting-up-presto) guide, the host is `localhost` and the port is `8889`. + The Presto cluster does not need to be running to start the package. ```yaml presto: From 2156ce11ea335c27ba70ed768ba1a7c758552c47 Mon Sep 17 00:00:00 2001 From: Marco Date: Fri, 19 Sep 2025 17:31:10 +0000 Subject: [PATCH 05/16] latest --- docs/src/user-docs/guides-using-presto.md | 28 +++++++++++++---------- 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/docs/src/user-docs/guides-using-presto.md b/docs/src/user-docs/guides-using-presto.md index 10a24c2695..8b74d8871e 100644 --- a/docs/src/user-docs/guides-using-presto.md +++ b/docs/src/user-docs/guides-using-presto.md @@ -166,18 +166,7 @@ docker compose rm ## Querying your logs through Presto -To query your logs through Presto, you can use either: - -* The WebUI available at [http://localhost:4000](http://localhost:4000) (if you changed -`webui.host` or `webui.port` in `etc/clp-config.yml`, use the new values) -* The Presto CLI: - -```bash -docker compose exec presto-coordinator \ - presto-cli \ - --catalog clp \ - --schema default -``` +You can query your compressed logs from CLP’s [UI](#querying-from-the-ui) or the [Presto CLI](#querying-from-the-presto-cli). Each dataset in CLP shows up as a table in Presto. To show all available datasets: @@ -211,6 +200,21 @@ contain the field `foo.bar`, you can query it using: SELECT foo.bar FROM default LIMIT 1; ``` +### Querying from the UI +The CLP UI is available at [http://localhost:4000](http://localhost:4000) (if you changed +`webui.host` or `webui.port` in `etc/clp-config.yml`, use the new values). + +### Querying from the Presto CLI +To access the Presto CLI, navigate to the `tools/deployment/presto-clp` and enter the +following command to start the CLI: + +```bash +docker compose exec presto-coordinator \ + presto-cli \ + --catalog clp \ + --schema default +``` + ## Limitations The Presto CLP integration has the following limitations at present: From da3942e6a4f3ffb94b031895374bb3ef4480279f Mon Sep 17 00:00:00 2001 From: Marco Date: Fri, 19 Sep 2025 17:33:26 +0000 Subject: [PATCH 06/16] latest --- docs/src/user-docs/guides-using-presto.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/user-docs/guides-using-presto.md b/docs/src/user-docs/guides-using-presto.md index 8b74d8871e..564c040c4f 100644 --- a/docs/src/user-docs/guides-using-presto.md +++ b/docs/src/user-docs/guides-using-presto.md @@ -205,7 +205,7 @@ The CLP UI is available at [http://localhost:4000](http://localhost:4000) (if yo `webui.host` or `webui.port` in `etc/clp-config.yml`, use the new values). ### Querying from the Presto CLI -To access the Presto CLI, navigate to the `tools/deployment/presto-clp` and enter the +To access the Presto CLI, navigate to the `tools/deployment/presto-clp` directory and enter the following command to start the CLI: ```bash From 3bab531be0cbf912f404de471ee5a55c917a2fb7 Mon Sep 17 00:00:00 2001 From: Marco Date: Fri, 19 Sep 2025 17:36:20 +0000 Subject: [PATCH 07/16] latest --- docs/src/user-docs/guides-using-presto.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/src/user-docs/guides-using-presto.md b/docs/src/user-docs/guides-using-presto.md index 564c040c4f..6b4107942e 100644 --- a/docs/src/user-docs/guides-using-presto.md +++ b/docs/src/user-docs/guides-using-presto.md @@ -201,10 +201,12 @@ SELECT foo.bar FROM default LIMIT 1; ``` ### Querying from the UI + The CLP UI is available at [http://localhost:4000](http://localhost:4000) (if you changed `webui.host` or `webui.port` in `etc/clp-config.yml`, use the new values). ### Querying from the Presto CLI + To access the Presto CLI, navigate to the `tools/deployment/presto-clp` directory and enter the following command to start the CLI: From 6b4c82abf4e63efa6df5d425fde613e8f81a855b Mon Sep 17 00:00:00 2001 From: davemarco <83603688+davemarco@users.noreply.github.com> Date: Mon, 22 Sep 2025 09:05:23 -0400 Subject: [PATCH 08/16] Apply suggestions from code review Co-authored-by: Quinn Taylor Mitchell --- docs/src/user-docs/guides-using-presto.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/src/user-docs/guides-using-presto.md b/docs/src/user-docs/guides-using-presto.md index 6b4107942e..a063073cd3 100644 --- a/docs/src/user-docs/guides-using-presto.md +++ b/docs/src/user-docs/guides-using-presto.md @@ -166,7 +166,8 @@ docker compose rm ## Querying your logs through Presto -You can query your compressed logs from CLP’s [UI](#querying-from-the-ui) or the [Presto CLI](#querying-from-the-presto-cli). +You can query your compressed logs in your browser from CLP’s [webUI](#querying-from-the-webui), or +from the command line with the [Presto CLI](#querying-from-the-presto-cli). Each dataset in CLP shows up as a table in Presto. To show all available datasets: @@ -200,14 +201,15 @@ contain the field `foo.bar`, you can query it using: SELECT foo.bar FROM default LIMIT 1; ``` -### Querying from the UI +### Querying from the webUI -The CLP UI is available at [http://localhost:4000](http://localhost:4000) (if you changed +The CLP webUI is available at [http://localhost:4000](http://localhost:4000) (if you changed `webui.host` or `webui.port` in `etc/clp-config.yml`, use the new values). ### Querying from the Presto CLI -To access the Presto CLI, navigate to the `tools/deployment/presto-clp` directory and enter the +To access the Presto CLI, navigate to the `tools/deployment/presto-clp` directory in a new terminal. +Make sure Presto is still running in whichever terminal you originally started it from. Enter the following command to start the CLI: ```bash From 832ffb2917b58707451ae18e2f188317f3d65775 Mon Sep 17 00:00:00 2001 From: Marco Date: Mon, 22 Sep 2025 13:14:46 +0000 Subject: [PATCH 09/16] latest --- docs/src/user-docs/guides-using-presto.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/src/user-docs/guides-using-presto.md b/docs/src/user-docs/guides-using-presto.md index a063073cd3..7ed27fd956 100644 --- a/docs/src/user-docs/guides-using-presto.md +++ b/docs/src/user-docs/guides-using-presto.md @@ -206,6 +206,10 @@ SELECT foo.bar FROM default LIMIT 1; The CLP webUI is available at [http://localhost:4000](http://localhost:4000) (if you changed `webui.host` or `webui.port` in `etc/clp-config.yml`, use the new values). +:::note +The WebUI can only run one query at a time, and queries must not include a `;`. +::: + ### Querying from the Presto CLI To access the Presto CLI, navigate to the `tools/deployment/presto-clp` directory in a new terminal. From f3043fe77a166a8692784c62a47cba57cff72ad5 Mon Sep 17 00:00:00 2001 From: Marco Date: Mon, 22 Sep 2025 13:15:23 +0000 Subject: [PATCH 10/16] latest --- docs/src/user-docs/guides-using-presto.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/user-docs/guides-using-presto.md b/docs/src/user-docs/guides-using-presto.md index 7ed27fd956..97539d3f74 100644 --- a/docs/src/user-docs/guides-using-presto.md +++ b/docs/src/user-docs/guides-using-presto.md @@ -206,7 +206,7 @@ SELECT foo.bar FROM default LIMIT 1; The CLP webUI is available at [http://localhost:4000](http://localhost:4000) (if you changed `webui.host` or `webui.port` in `etc/clp-config.yml`, use the new values). -:::note +:::{note} The WebUI can only run one query at a time, and queries must not include a `;`. ::: From d8ad9557a304465a8e76784a8da4ebf7aab8fc55 Mon Sep 17 00:00:00 2001 From: davemarco <83603688+davemarco@users.noreply.github.com> Date: Mon, 22 Sep 2025 12:50:01 -0400 Subject: [PATCH 11/16] Apply suggestions from code review Co-authored-by: kirkrodrigues <2454684+kirkrodrigues@users.noreply.github.com> --- docs/src/user-docs/guides-using-presto.md | 29 +++++++++++++---------- 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/docs/src/user-docs/guides-using-presto.md b/docs/src/user-docs/guides-using-presto.md index 97539d3f74..cae6bda6a9 100644 --- a/docs/src/user-docs/guides-using-presto.md +++ b/docs/src/user-docs/guides-using-presto.md @@ -48,7 +48,7 @@ Using Presto with CLP requires: ```yaml database: # type: "mariadb" - host: + host: "" # port: 3306 # name: "clp-db" ``` @@ -56,11 +56,12 @@ Using Presto with CLP requires: :::{note} This change is necessary because the Presto containers run on a Docker network, and CLP's database runs on the host network. `localhost` will refer to a different entity in each of - those contexts. + those contexts. This limitation will be addressed in the future when we unify Presto and CLP's + deployment infrastructure. ::: - * Set the `results_cache.retention_period` key to `null`. The CLP + Presto integration does not - yet provide support for garbage collection. + * Set the `results_cache.retention_period` key to `null` since the CLP + Presto integration + doesn't yet support for garbage collection. ```yaml results_cache: @@ -74,15 +75,19 @@ Using Presto with CLP requires: ``` * Update the `presto` key with the host and port of the Presto cluster. If you follow the - [Setting up Presto](#setting-up-presto) guide, the host is `localhost` and the port is `8889`. - The Presto cluster does not need to be running to start the package. + [Setting up Presto](#setting-up-presto) section, the host is `localhost` and the port is + `8889`. ```yaml presto: - host: + host: "" port: ``` + :::{note} + Presto doesn't need to be running before you start CLP. + ::: + 3. If you'd like to store your compressed logs on S3, follow the [using object storage](guides-using-object-storage/index.md) guide. @@ -166,8 +171,8 @@ docker compose rm ## Querying your logs through Presto -You can query your compressed logs in your browser from CLP’s [webUI](#querying-from-the-webui), or -from the command line with the [Presto CLI](#querying-from-the-presto-cli). +You can query your compressed logs in your browser from [CLP's UI](#querying-from-clps-ui), or +from the command line using the [Presto CLI](#querying-from-the-presto-cli). Each dataset in CLP shows up as a table in Presto. To show all available datasets: @@ -201,13 +206,13 @@ contain the field `foo.bar`, you can query it using: SELECT foo.bar FROM default LIMIT 1; ``` -### Querying from the webUI +### Querying from CLP's UI -The CLP webUI is available at [http://localhost:4000](http://localhost:4000) (if you changed +CLP's UI should be available at [http://localhost:4000](http://localhost:4000) (if you changed `webui.host` or `webui.port` in `etc/clp-config.yml`, use the new values). :::{note} -The WebUI can only run one query at a time, and queries must not include a `;`. +The UI can only run one query at a time, and queries must not terminate with a `;`. ::: ### Querying from the Presto CLI From f9ec9a63726cf9aadeddce23a0b10ebce83600f1 Mon Sep 17 00:00:00 2001 From: Marco Date: Mon, 22 Sep 2025 16:51:31 +0000 Subject: [PATCH 12/16] latest --- docs/src/user-docs/guides-using-presto.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/src/user-docs/guides-using-presto.md b/docs/src/user-docs/guides-using-presto.md index cae6bda6a9..7f10515cb8 100644 --- a/docs/src/user-docs/guides-using-presto.md +++ b/docs/src/user-docs/guides-using-presto.md @@ -65,13 +65,13 @@ Using Presto with CLP requires: ```yaml results_cache: - # host: "localhost" - # port: 27017 - # db_name: "clp-query-results" - # stream_collection_name: "stream-files" - # - # # Retention for search results, in minutes. Set to null to disable automatic deletion. - retention_period: null + # host: "localhost" + # port: 27017 + # db_name: "clp-query-results" + # stream_collection_name: "stream-files" + # + # # Retention period for search results, in minutes. Set to null to disable automatic deletion. + retention_period: null ``` * Update the `presto` key with the host and port of the Presto cluster. If you follow the From d495f97d24e24b33cf3edf931dfd5517d900feac Mon Sep 17 00:00:00 2001 From: Marco Date: Mon, 22 Sep 2025 16:57:15 +0000 Subject: [PATCH 13/16] latest --- docs/src/user-docs/guides-using-presto.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/user-docs/guides-using-presto.md b/docs/src/user-docs/guides-using-presto.md index 7f10515cb8..341626e989 100644 --- a/docs/src/user-docs/guides-using-presto.md +++ b/docs/src/user-docs/guides-using-presto.md @@ -61,7 +61,7 @@ Using Presto with CLP requires: ::: * Set the `results_cache.retention_period` key to `null` since the CLP + Presto integration - doesn't yet support for garbage collection. + doesn't yet support garbage collection. ```yaml results_cache: From 43a39cc6e1f0c23cfd87fc2a12fafed7044ad7b4 Mon Sep 17 00:00:00 2001 From: davemarco <83603688+davemarco@users.noreply.github.com> Date: Tue, 23 Sep 2025 10:58:09 -0400 Subject: [PATCH 14/16] Update docs/src/user-docs/guides-using-presto.md Co-authored-by: kirkrodrigues <2454684+kirkrodrigues@users.noreply.github.com> --- docs/src/user-docs/guides-using-presto.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/user-docs/guides-using-presto.md b/docs/src/user-docs/guides-using-presto.md index 341626e989..3f4c1fc0af 100644 --- a/docs/src/user-docs/guides-using-presto.md +++ b/docs/src/user-docs/guides-using-presto.md @@ -212,7 +212,7 @@ CLP's UI should be available at [http://localhost:4000](http://localhost:4000) ( `webui.host` or `webui.port` in `etc/clp-config.yml`, use the new values). :::{note} -The UI can only run one query at a time, and queries must not terminate with a `;`. +The UI can only run one query at a time, and queries must not end with a `;`. ::: ### Querying from the Presto CLI From e09ef681199748e63cd0ebc37aaddd1772087ee5 Mon Sep 17 00:00:00 2001 From: Marco Date: Tue, 23 Sep 2025 15:03:26 +0000 Subject: [PATCH 15/16] latest --- docs/src/user-docs/guides-using-presto.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/src/user-docs/guides-using-presto.md b/docs/src/user-docs/guides-using-presto.md index 341626e989..88f1157b4b 100644 --- a/docs/src/user-docs/guides-using-presto.md +++ b/docs/src/user-docs/guides-using-presto.md @@ -148,7 +148,7 @@ Using Presto with CLP requires: 5. Start a Presto cluster by running: ```bash - docker compose up + docker compose up --detach ``` * To use more than one Presto worker, you can use the `--scale` option as follows: @@ -161,12 +161,16 @@ Using Presto with CLP requires: ### Stopping the Presto cluster -To stop the Presto cluster, use CTRL + C. +To stop the Presto cluster: + +```bash +docker compose stop +``` To clean up the Presto cluster entirely: ```bash -docker compose rm +docker compose down ``` ## Querying your logs through Presto From b61b55d0ea141852cb36e923d65be6014213e5f0 Mon Sep 17 00:00:00 2001 From: davemarco <83603688+davemarco@users.noreply.github.com> Date: Tue, 23 Sep 2025 11:06:49 -0400 Subject: [PATCH 16/16] Update docs/src/user-docs/guides-using-presto.md Co-authored-by: kirkrodrigues <2454684+kirkrodrigues@users.noreply.github.com> --- docs/src/user-docs/guides-using-presto.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/src/user-docs/guides-using-presto.md b/docs/src/user-docs/guides-using-presto.md index f6a58d055b..87df924dca 100644 --- a/docs/src/user-docs/guides-using-presto.md +++ b/docs/src/user-docs/guides-using-presto.md @@ -221,9 +221,7 @@ The UI can only run one query at a time, and queries must not end with a `;`. ### Querying from the Presto CLI -To access the Presto CLI, navigate to the `tools/deployment/presto-clp` directory in a new terminal. -Make sure Presto is still running in whichever terminal you originally started it from. Enter the -following command to start the CLI: +To access the Presto CLI, navigate to the `tools/deployment/presto-clp` directory and run: ```bash docker compose exec presto-coordinator \