Docker 部署 Presto

1. 架构图 {#presto_architecture}

2. 部署 Presto {#Deploy_presto}

docker run -d -p 127.0.0.1:8080:8080 --name presto starburstdata/presto
docker exec -it presto presto-cli
1
2

3. 测试 {#Test}

时间距离,不带时区

presto> select localtimestamp - interval '1' hour;
          _col0
-------------------------
 2019-11-18 09:50:21.746
1
2
3
4

reference