Skip to Content
Trino 权威指南:原书第2版
book

Trino 权威指南:原书第2版

by Matt Fuller, Manfred Moser, Martin Traverso
July 2023
Intermediate to advanced
278 pages
5h 40m
Chinese
China Machine Press
Content preview from Trino 权威指南:原书第2版
24
|
2
如果你尝试运行
Docker
并遇到了错误
Query
xyz
failed:
Trino
server
is
still initializing
,请等待一段时间后重试上一条命令。
利用
SQL
知识,你可以进一步探索这一数据集。可以使用
help
命令了解
Trino CLI
或者,可以使用直接安装在工作站上的
Trino CLI
CLI
中的默认服务器地址是
http://
localhost:8080
(端口号需要与用于启动容器的命令中使用的端口匹配)。更多有关使用
CLI
的信息,参见
3.1
节。你还可以将任何其他客户端应用程序(例如
DBeaver
)连接
到容器上的
Trino
该镜像已经包含了可以正常使用的默认配置,以及允许你探索
Trino
的一些数据源目录。
你还可以将容器与本地
etc
目录结构中的自定义配置文件一起使用,如
2.2
节中创建的
那样。如果在启动容器时将此目录挂载为路径
etc/trino
中的卷,则使用你的配置而不是
镜像中的默认值:
$ docker run -d -p 8080:8080 --volume $PWD/etc:/etc/trino trinodb/trino
当你结束探索时,可以使用
quit
命令退出。
执行下列命令就可以停止并移除之前的容器:
$ docker stop trino-trial
trino-trial
如果你想进一步试验,可以重新开始:
$ docker start trino-trial
trino-trial
如果你已经掌握了足够的知识,不再需要
Docker
镜像
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.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

What Successful Brick-and-Mortar Retailers Get Right

What Successful Brick-and-Mortar Retailers Get Right

Rob Angell
Three Essentials for Agentic AI Security

Three Essentials for Agentic AI Security

Paolo Dal Cin, Daniel Kendzior, Yusof Seedat, Renato Marinho
What Successful Project Managers Do

What Successful Project Managers Do

W. Scott Cameron, Jeffrey S. Russell, Edward J. Hoffman, Alexander Laufer

Publisher Resources

ISBN: 9787111731603