Skip to content

Commit

Permalink
[Issue 5287][docs] Add documentation on how to configure multiple bro…
Browse files Browse the repository at this point in the history
…ker services (apache#5722)

Fixes apache#5287 

### Motivation
Users do not know how to specify cluster (multi broker/zk) connection for presto.

### Modifications
Add content on how to configure multiple hosts for `pulsar.broker-service-url`.
  • Loading branch information
Jennifer88huang-zz authored and sijie committed Nov 26, 2019
1 parent f83793e commit 14f3eee
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions site2/docs/sql-deployment-configurations.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ pulsar.entry-read-batch-size=100
pulsar.target-num-splits=4
```

You can connect Presto to a Pulsar cluster with multiple hosts. To configure multiple hosts for brokers, add multiple URLs to `pulsar.broker-service-url`. To configure multiple hosts for ZooKeeper, add multiple URIs to `pulsar.zookeeper-uri`. The following is an example.

```
pulsar.broker-service-url=http://localhost:8080,localhost:8081,localhost:8082
pulsar.zookeeper-uri=localhost1,localhost2:2181
```

## Query data from existing Presto clusters

If you already have a Presto cluster, you can copy the Presto Pulsar connector plugin to your existing cluster. Download the archived plugin package with the following command.
Expand Down

0 comments on commit 14f3eee

Please sign in to comment.