Skip to content

Commit

Permalink
[MINOR UPDATE] Update Docker-Compose Docs (#2933)
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning authored Aug 7, 2024
1 parent 0cdb471 commit a05b90d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 12 deletions.
12 changes: 6 additions & 6 deletions contrib/storage-druid/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,27 +33,27 @@ Following is the default registration configuration.

### Druid storage plugin developer notes.

* Building the plugin
* Building the plugin

`mvn install -pl contrib/storage-druid`

* Building DRILL

`mvn clean install -DskipTests`

* Start Drill In Embedded Mode (mac)

```shell script
distribution/target/apache-drill-1.20.0-SNAPSHOT/apache-drill-1.20.0-SNAPSHOT/bin/drill-embedded
```

* Starting Druid (Docker and Docker Compose required)
```
cd contrib/storage-druid/src/test/resources/druid
docker-compose up -d
docker compose up -d
```

* There is an `Indexing Task Json` in the same folder as the docker compose file. It can be used to ingest the wikipedia datasource.

* Make sure the druid storage plugin is enabled in Drill.

Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
# limitations under the License.
#

version: "2.2"

volumes:
metadata_data: {}
middle_var: {}
Expand Down
6 changes: 3 additions & 3 deletions distribution/docker-compose/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ launch. Logging is redirected to stdout.
In the docker-cluster-mode directory:

1. docker build -t apache/drill-cluster-mode
2. docker-compose up
2. docker compose up

Then access the web UI at http://localhost:8047 or connect a JDBC client to
jdbc:drill:drillbit=localhost or jdbc:drill:zk=localhost but note that you
Expand All @@ -15,11 +15,11 @@ to use a ZooKeeper JDBC URL.

To launch a cluster of 3 Drillbits

3. docker-compose up --scale drillbit=3
3. docker compose up --scale drillbit=3

but first note that to use docker-compose's "scale" feature to run multiple
Drillbit containers on a single host you will need to remove the host port
mappings from the compose file to prevent collisions (see the comments
on the relevant lines in that file). Once the Drillbits are launched run
`docker-compose ps` to list the ephemeral ports that have been allocated on
`docker compose ps` to list the ephemeral ports that have been allocated on
the host.
1 change: 0 additions & 1 deletion distribution/docker-compose/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
# limitations under the License.
#

version: "3.9"
services:
zookeeper:
container_name: zookeeper
Expand Down

0 comments on commit a05b90d

Please sign in to comment.