At the beginning of this month, new Presto Software Foundation (PSF) was launched. This foundation was created for ensuring the openness of Presto as open source software.

Since the source code was forked from the original repository prestodb/prestodb to prestosql/presto, we may need to choose either of them. Even just after the fork, there are already several packages released in the new PSF community. The latest version is 302.

Therefore I decided to migrate docker-presto-cluster to new Presto. The latest version of docker images were published in DockerHub.

image url
presto-coordinator lewuathe/presto-coordinator
presto-worker lewuathe/presto-worker

The easiest way to use these images are docker-compose. Please take a look into the previous post for more detail.

This is the example of docker-compose.yml file.

version: '3'

services:
  coordinator:
    build: 
      context: ./presto-coordinator
      args:
        node_id: coordinator
    ports:
      - "8080:8080"
    container_name: "coordinator"

  worker0:
    build: 
      context: ./presto-worker
      args:
        node_id: worker0
    container_name: "worker0"
    ports:
      - "8081:8081"
  worker1:
    build: 
      context: ./presto-worker
      args:
        node_id: worker1
    container_name: "worker1"
    ports:
      - "8082:8081"

Of course, you may want to submit queries to the cluster. I hope this article would be helpful for that purpose. This describes how to use client tool to run queries in Presto cluster running by docker-compose.

Please let me know anytime if you find anything wrong with the framework. Thanks!