1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-24 08:52:15 +02:00
dockerfiles/prestosql
2020-11-05 19:22:21 +08:00
..
conf update snort 2020-08-14 11:26:15 +08:00
docker-stack.yml upgrade prestosql to 340 2020-08-12 16:05:06 +08:00
Dockerfile.alpine update snort 2020-08-14 11:26:15 +08:00
Dockerfile.debian update snort 2020-08-14 11:26:15 +08:00
presto-server.service update cowrie 2020-11-05 19:22:21 +08:00
README.md upgrade prestosql to 340 2020-08-12 16:05:06 +08:00

prestosql

Presto is a high performance, distributed SQL query engine for big data.

standalone mode

prestosql:
  image: vimagick/prestosql:alpine
  ports:
    - "8080:8080"
  volumes:
    - ./conf/standalone:/opt/presto/etc:ro
    - /data:/data
  restart: unless-stopped

cluster mode

$ ansible all -a 'mkdir -p /data'

$ docker stack deploy -c docker-stack.yml prestosql

$ docker ps | grep prestosql_coordinator | awk '{print $1}'
4cc5c6c420d7

$ docker exec -it 4cc5c6c420d7 presto --server localhost:8080 --catalog tpch
>>> show schemas;
>>> show tables from tiny;
>>> select * from tiny.customer limit 10;
>>> quit

$ curl http://localhost:8080/ui/

$ curl http://localhost:8080/v1/service/presto/general

⚠️ If volume settings are changed, you need to remove them manually on all nodes.