Skip to content

Conversation

@jnturton
Copy link
Contributor

@jnturton jnturton commented Sep 6, 2022

DRILL-8293: Add a docker-compose file to run Drill in cluster mode

Description

This directory contains source code artifacts to launch Drill in cluster mode
along with a ZooKeeper. The Drill image is based on a minor customisation of
the official Drill image that switches it from an embedded to a cluster mode
launch. Logging is redirected to stdout.

In the docker-cluster-mode directory:

  1. docker build -t apache/drill-cluster-mode
  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
will need to make the drillbit container hostnames resolvable from the host to
use a ZooKeeper JDBC URL.

To launch a cluster of 3 Drillbits

  1. 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
the host.

Documentation

Add the above discussion to the Drill in Docker doc page.

Testing

Launch Drill using the provided commands and run queries.

@jnturton jnturton added the backport-to-stable This bug fix is applicable to the latest stable release and should be considered for inclusion there label Sep 6, 2022
Copy link
Contributor

@cgivre cgivre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM +1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-to-stable This bug fix is applicable to the latest stable release and should be considered for inclusion there

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants