docker-presto-cluster is a simple tool for launching multiple node Presto cluster on docker container. The image is synched with the master branch of presto repository. Therefore you can try the latest presto for developing purpose easily.
Role | Image | Pulls | Tags |
---|---|---|---|
coordinator | lewuathe/presto-coordinator | tags | |
worker | lewuathe/presto-worker | tags |
$ make build
You may want to build the Presto with your own build package for the development of Presto itself.
$ make local
Presto cluster can be launched by using docker-compose. Images built previously is used for the cluster.
$ make run
Images are uploaded in DockerHub. These images are build with the corresponding version of Presto. Image tagged with 306 uses Presto 306. You can launch multiple node docker presto cluster with below yaml file. command
is required to pass node id information which must be unique in a cluster.
version: '3'
services:
coordinator:
image: lewuathe/presto-coordinator:309
ports:
- "8080:8080"
container_name: "coordinator"
command: coordinator
worker0:
image: lewuathe/presto-worker:309
container_name: "worker0"
ports:
- "8081:8081"
command: worker0
worker1:
image: lewuathe/presto-worker:309
container_name: "worker1"
ports:
- "8082:8081"
command: worker1
Run
$ docker-compose up -d