Skip to Content
Learning and Operating Presto
book

Learning and Operating Presto

by Angelica Lo Duca, Tim Meehan, Vivek Bharathan, Ying Su
September 2023
Intermediate to advanced
191 pages
4h 32m
English
O'Reilly Media, Inc.
Content preview from Learning and Operating Presto

Chapter 2. Getting Started with Presto

There are various ways to set up Presto. In the first part of this chapter, you’ll see how to install Presto manually. We won’t dwell much on manual installation, because the real goal of the chapter is to build a small cluster locally, which simulates a realistic production environment.

Next, you’ll see how to install Presto on Docker and how to set up a local cluster in Kubernetes. Finally, you’ll learn how to run your first queries in Presto, with a focus on how to list catalogs and schemas, and query a table.

This chapter assumes that you have some familiarity with Docker, Kubernetes, and using a command line. Even if you don’t, you should still be able to follow the instructions end to end and get a working deployment running successfully.

Presto Manual Installation

To set up Presto on your local machine, you can follow the procedure described in the Presto official documentation. Since Presto is written in Java, you should pay attention to the specific versions of Java supported by Presto. Presto requires Java 8. Both Oracle JDK and OpenJDK are supported.

Running Presto on Docker

The local Presto instance is great for development and troubleshooting. You can set up a full production cluster with multiple nodes using bare-metal machines or VMs. However, you would need to manage the monitoring, availability, scalability, and rollout of these nodes by yourself. This is where containers and Kubernetes come in.

In this section, we’ll ...

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

Learning Presto DB

Learning Presto DB

Matt Fuller
Rust in Motion

Rust in Motion

Carol Nichols, Jake Goulding
The Book of Dash

The Book of Dash

Adam Schroeder, Christian Mayer, Ann Marie Ward
Flow Architectures

Flow Architectures

James Urquhart

Publisher Resources

ISBN: 9781098141844Errata Page