2018-08-21 17:02:50 +08:00
|
|
|
presto
|
|
|
|
======
|
|
|
|
|
2019-06-16 16:59:02 +08:00
|
|
|
[Presto][1] is a distributed SQL query engine designed to query large data sets
|
|
|
|
distributed over one or more heterogeneous data sources.
|
|
|
|
|
|
|
|
## docker-compose.yaml
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
presto:
|
|
|
|
image: vimagick/presto
|
|
|
|
ports:
|
|
|
|
- "8080:8080"
|
|
|
|
volumes:
|
|
|
|
- ./conf/standalone:/opt/presto/etc
|
|
|
|
- ./data/standalone:/data
|
|
|
|
restart: unless-stopped
|
|
|
|
```
|
|
|
|
|
|
|
|
## up and running
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ docker-comopse up -d
|
2019-06-16 17:07:52 +08:00
|
|
|
|
|
|
|
$ docker-compose exec presto presto --server localhost:8080 --catalog tpch
|
|
|
|
>>> show schemas;
|
|
|
|
>>> show tables from tiny;
|
|
|
|
>>> select * from tiny.customer limit 10;
|
|
|
|
>>> quit
|
|
|
|
|
2019-06-16 18:45:52 +08:00
|
|
|
$ curl http://localhost:8080/v1/service/presto/general
|
2019-06-16 16:59:02 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
[1]: https://prestodb.io/
|