You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/09/06 11:10:00 UTC
[jira] [Commented] (DRILL-8293) Add a docker-compose file to run Drill in cluster mode
[ https://issues.apache.org/jira/browse/DRILL-8293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17600726#comment-17600726 ]
ASF GitHub Bot commented on DRILL-8293:
---------------------------------------
jnturton opened a new pull request, #2640:
URL: https://github.com/apache/drill/pull/2640
# [DRILL-8293](https://issues.apache.org/jira/browse/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
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
the host.
## Documentation
Add the above discussion to the Drill in Docker doc page.
## Testing
Launch Drill using the provided commands and run queries.
> Add a docker-compose file to run Drill in cluster mode
> ------------------------------------------------------
>
> Key: DRILL-8293
> URL: https://issues.apache.org/jira/browse/DRILL-8293
> Project: Apache Drill
> Issue Type: Improvement
> Components: Server
> Affects Versions: 1.20.2
> Reporter: James Turton
> Priority: Minor
> Fix For: 1.20.3
>
>
> Add a docker-compose file based on the official Docker images but overriding the ENTRYPOINT to launch Drill in cluster mode and including a ZooKeeper container. This can be used to experiment with cluster mode on a single machine, or to run a real cluster on platforms that work with docker-compose like Docker Swarm or ECS.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)