docker run -d --name presto-trial prestosql/presto
现在让我们连接到容器内,并使用
Presto
命令行界面(
CLI
)执行
presto
命令。这会连接
到同一容器里运行着的
Presto
服务器。接下来,
在命令提示行中可以执行一个在
TPC-H
基
准测试数据表上的查询。
$ docker exec -it presto-trial presto
presto> select count(*) from tpch.sf1.nation;
_col0
-------
25
(1 row)
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.