-
Notifications
You must be signed in to change notification settings - Fork 5.5k
docs(native): Add documentation for Presto C++ Installation #26718
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
docs(native): Add documentation for Presto C++ Installation #26718
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideAdds new Sphinx documentation describing how to install and run the Presto C++ worker, including build, configuration, and integration steps, by introducing a dedicated installation guide and wiring it into the existing Presto C++ docs hierarchy. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey there - I've reviewed your changes - here's some feedback:
- Since you’ve moved content under
presto_cpp/installation.rst, make surepresto-cpp.rst(and any relevant toctrees) links to this new doc so it’s discoverable from the main navigation. - Check for any existing references or deep links to
presto-cpp.rstthat should now point to the newpresto_cpp/installation.rstpath to avoid broken links in the published docs.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Since you’ve moved content under `presto_cpp/installation.rst`, make sure `presto-cpp.rst` (and any relevant toctrees) links to this new doc so it’s discoverable from the main navigation.
- Check for any existing references or deep links to `presto-cpp.rst` that should now point to the new `presto_cpp/installation.rst` path to avoid broken links in the published docs.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
steveburnett
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the doc! I made a lot of notes, mostly formatting and phrasing to fit the tone of technical documentation. Some suggestions and ideas for you to consider.
4a14b2d to
e3a5a8d
Compare
steveburnett
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the revision! This is looking better, so this review is mostly focused on revision suggestions to improve the consistency of the tone with the rest of the Presto documentation.
I have tried to explain my comments and suggestions. Let me know if you have any questions or concerns about these and we can discuss them if you want to.
| :backlinks: none | ||
| :depth: 1 | ||
|
|
||
| This shows how to install and run a lightweight Presto cluster utilizing a PrestoDB Java Coordinator and Prestissimo (C++) Workers using Docker. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| This shows how to install and run a lightweight Presto cluster utilizing a PrestoDB Java Coordinator and Prestissimo (C++) Workers using Docker. | |
| This shows how to install and run a lightweight Presto cluster utilizing a PrestoDB Java Coordinator and Prestissimo (Presto C++) Workers using Docker. | |
| For more information about Presto C++, see the :ref:`presto-cpp:overview`. |
This new page in the Presto documentation does not have to explain what is Prestissimo, we can refer to the existing doc for that, and focus this page on how to deploy Presto with Prestissimo workers.
|
|
||
| The setup uses Meta's high-performance Velox engine for worker-side query execution. We will configure a cluster and run a test query with the built-in TPCH connector. | ||
|
|
||
| Introducing Prestissimo (Presto C++ Worker) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please delete lines 14-23, as we are leveraging the existing doc with the new sentence in line 10.
| * Docker installed. | ||
| * Basic familiarity with the terminal and shell commands. | ||
|
|
||
| Setup Guide |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete this heading, and the formatting line below it.
| Setup Guide | ||
| ----------- | ||
|
|
||
| The recommended directory structure uses ``presto-lab`` as the root directory. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move this sentence to become the first sentence after the heading Create a Working Directory.
|
|
||
| The Coordinator requires configuration to define its role, enable the discovery service, and set up a catalog for querying. | ||
|
|
||
| A. Create Configuration Directory |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| A. Create Configuration Directory | |
| 1. Create Configuration Directory |
| * The setting ``platform: linux/amd64`` is essential for users running on Apple Silicon Macs. | ||
| * The ``volumes`` section mounts your local configuration directories (``./coordinator/etc``, ``./worker-1/etc``) into the container's expected path (``/opt/presto-server/etc``). | ||
|
|
||
| Step 5: Start the Cluster and Verify |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Step 5: Start the Cluster and Verify | |
| Start the Cluster and Verify |
| Step 5: Start the Cluster and Verify | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
|
||
| A. Start the Cluster |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| A. Start the Cluster | |
| 1. Start the Cluster |
|
|
||
| docker compose up -d | ||
|
|
||
| B. Verify |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| B. Verify | |
| 2. Verify |
|
|
||
| 1. **Check the Web UI:** Open the Presto Web UI at http://localhost:8080. | ||
|
|
||
| * *Verification Result:* You should see the UI displaying 3 Active Workers (1 Coordinator and 2 Workers). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| * *Verification Result:* You should see the UI displaying 3 Active Workers (1 Coordinator and 2 Workers). | |
| You should see the UI displaying 3 Active Workers (1 Coordinator and 2 Workers). |
|
|
||
| * *Verification Result:* You should see the UI displaying 3 Active Workers (1 Coordinator and 2 Workers). | ||
|
|
||
| 2. **Check Detailed Node Status (SQL Query):** Run the following query to check the detailed status and metadata about every node (Coordinator and Workers). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 2. **Check Detailed Node Status (SQL Query):** Run the following query to check the detailed status and metadata about every node (Coordinator and Workers). | |
| 2. **Check Detailed Node Status**: Run the following SQL query to check the detailed status and metadata about every node (Coordinator and Workers). |
Description
Added new documentation explaining how to use the Presto C++ engine.
The documentation provides step-by-step instructions for configuring, and running the Presto C++ worker
Motivation and Context
There was no consolidated or beginner-friendly documentation for Presto C++ in the open-source project.
Users often had difficulty understanding how to build and run the C++ worker, what dependencies were required, and how it integrates with a Presto coordinator.
Impact
There is no performance impact.
Test Plan
Contributor checklist
Release Notes