Skip to content
Merged
23 changes: 21 additions & 2 deletions docs/src/user-guide/guides-using-presto.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,27 @@ 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.
Before proceeding, navigate to `etc/clp-config.yml` in the package. Locate and uncomment the
`database:` section, and change the`database.host` parameter to a non-localhost hostname/IP. The
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
`database:` section should look like this:

```yaml
database:
type: "mariadb" # "mariadb" or "mysql"
host: "<new-IP-address>"
port: 3306
name: "clp-db"
```

Comment thread
quinntaylormitchell marked this conversation as resolved.
Outdated
For CLP’s database, `localhost` indicates the host itself, but for the Presto coordinator and
Comment thread
quinntaylormitchell marked this conversation as resolved.
Outdated
worker(s), `localhost` points at the container Presto is running within, as the coordinator and
worker(s) run on a kind of virtual network.
Infrastructure that will support CLP and the Presto container running within the same network is
in development.
Comment thread
quinntaylormitchell marked this conversation as resolved.
Outdated

2. Continue the [quick-start](./quick-start/index.md#using-clp) guide to start up CLP and compress
your logs. A sample dataset that works well with Presto is [postgresql].
Comment thread
quinntaylormitchell marked this conversation as resolved.
Outdated

Comment thread
quinntaylormitchell marked this conversation as resolved.
Outdated
### Setting up Presto

Expand Down