-
Notifications
You must be signed in to change notification settings - Fork 83
docs(presto-clp): Add step about changing database.host
to a non-localhost hostname/IP since Presto runs on the Docker rather than host network.
#1154
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
Changes from 7 commits
dac1804
29e4fc1
0f9b453
6f6bbd3
4b21f3c
cf983c3
8dc755f
6f1fb19
623d6ac
2155dc3
43aad5e
f2d7c30
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -31,8 +31,31 @@ Using Presto with CLP requires: | |||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
### Setting up CLP | ||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
Follow the [quick-start](./quick-start/index.md) guide to set up CLP and compress your logs. A | ||||||||||||||||||||||||||||||||
sample dataset that works well with Presto is [postgresql]. | ||||||||||||||||||||||||||||||||
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: "<new-IP-address>" | ||||||||||||||||||||||||||||||||
port: 3306 | ||||||||||||||||||||||||||||||||
name: "clp-db" | ||||||||||||||||||||||||||||||||
``` | ||||||||||||||||||||||||||||||||
quinntaylormitchell marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
:::{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. | ||||||||||||||||||||||||||||||||
::: | ||||||||||||||||||||||||||||||||
Comment on lines
+51
to
+56
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Add a note to ensure the DB listens on a non-loopback interface Even with a non-localhost host value, connections will fail if MariaDB/MySQL is bound only to 127.0.0.1. A short hint here reduces setup friction. :::{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
+ networks. Also ensure your database server is listening on a non-loopback interface (e.g.,
+ bind to the host's LAN IP or 0.0.0.0) so containers can connect; adjust your firewall as
+ appropriate for your environment.
+ This limitation will be addressed in the future when we unify Presto and CLP's
deployment infrastructure.
::: 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents
|
||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
3. Continue following the [quick-start](./quick-start/index.md#using-clp) guide to start CLP and | ||||||||||||||||||||||||||||||||
compress your logs. A sample dataset that works well with Presto is [postgresql]. | ||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
### Setting up Presto | ||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
|
Uh oh!
There was an error while loading. Please reload this page.