RSS Amplifier

Shorts · Aug 4, 2016

Installing Presto for Mac

0
Sign in to vote or save

This page cannot be shown here. You can still read it on the original site — the toolbar below keeps your place in the directory.

Presto is a “Distributed SQL Query Engine for Big Data” that gives you the ability to join across data stores! :tada: Server The easiest way to install Presto is with Homebrew . brew install presto Next, add a connector. Here’s the list of available ones . For PostgreSQL, create /usr/local/opt/presto/libexec/etc/catalog/mydb.properties with: connector.name=postgresql…

Presto is a “Distributed SQL Query Engine for Big Data” that gives you the ability to join across data stores! :tada:

Server

The easiest way to install Presto is with Homebrew.

brew install presto

Next, add a connector. Here’s the list of available ones.

For PostgreSQL, create /usr/local/opt/presto/libexec/etc/catalog/mydb.properties with:

connector.name=postgresql
connection-url=jdbc:postgresql://localhost:5432/mydbname
connection-user=myuser
connection-password=mysecret

And start the server with:

presto-server run

Client

Presto comes with a CLI

presto --catalog mydb --schema public

And run:

SHOW TABLES;

Try one of your tables with:

SELECT * FROM mytable;

There are also clients in many different languages you can use.

:rabbit: :tophat: :sparkles:

Read on ankane.org

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.