Skip to content

Commit e1c026f

Browse files
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)
Co-authored-by: kirkrodrigues <[email protected]>
1 parent 2a1058d commit e1c026f

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

docs/src/user-guide/guides-using-presto.md

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,32 @@ Using Presto with CLP requires:
3131

3232
### Setting up CLP
3333

34-
Follow the [quick-start](./quick-start/index.md) guide to set up CLP and compress your logs. A
35-
sample dataset that works well with Presto is [postgresql].
34+
1. Follow the [quick-start](./quick-start/index.md) guide to download and extract the CLP package,
35+
but don't start the package just yet.
36+
2. Before starting the package, update the package's config as follows:
37+
38+
* Open `etc/clp-config.yml` located within the package.
39+
* Uncomment the `database` section.
40+
* Change `database.host` value to a non-localhost hostname/IP.
41+
* After the change, the `database` section should look something like this:
42+
43+
```yaml
44+
database:
45+
type: "mariadb" # "mariadb" or "mysql"
46+
host: "<new-IP-address>"
47+
port: 3306
48+
name: "clp-db"
49+
```
50+
51+
:::{note}
52+
This change is necessary since the Presto containers run on a Docker network, whereas CLP's
53+
database runs on the host network. So `localhost` refers to two different entities in those
54+
networks. This limitation will be addressed in the future when we unify Presto and CLP's
55+
deployment infrastructure.
56+
:::
57+
58+
3. Continue following the [quick-start](./quick-start/index.md#using-clp) guide to start CLP and
59+
compress your logs. A sample dataset that works well with Presto is [postgresql].
3660

3761
### Setting up Presto
3862

0 commit comments

Comments
 (0)