Skip to content

Docker container to run single-node Presto server with support for querying local Parquet files.

License

Notifications You must be signed in to change notification settings

floating-window/presto-local-parquet

Repository files navigation

presto-local-parquet

Single-node Presto cluster configured to query local Parquet files.

To run queries over /home/user/SomeData/DataSet1/file_<n>.parquet

docker run -it --rm --mount source=/home/user/SomeData/,destination=/parquet,type=bind floatingwindow/presto-local-parquet

This will start a Presto server and local S3 server, then run a Presto shell.

The schema for the Parquet files needs to be defined before you can run queries, an example is provided in the shell.

Exit the shell with Ctrl+D.

Run Options

Single-use

Any schemas defined will be lost when the container exits.

docker run -it --rm --mount source=/<data-dir>/,destination=/parquet,type=bind floatingwindow/presto-local-parquet

With Presto Web UI

The Web UI shows the status of Presto, access at http://127.0.0.1:8080 with username admin (no password required).

docker run -it --rm -p 8080:8080 --mount source=/<data-dir>/,destination=/parquet,type=bind floatingwindow/presto-local-parquet

Named

Keep the container, and save schemas for re-use later.

Exit shell with Ctrl+D

First startup

docker run -it --mount source=/<data-dir>/,destination=/parquet,type=bind --name presto-lp floatingwindow/presto-local-parquet

First startup, with Presto Web UI

See above for details on accessing the UI.

docker run -it -p 8080:8080 --mount source=/<data-dir>/,destination=/parquet,type=bind --name presto-lp floatingwindow/presto-local-parquet

Subsequent startup

docker start -i presto-lp

Removing the container

docker container rm presto-lp

Separate server/client

Leave the server running in the background and run (and quit) the shell independently.

The server will not start if a .minio.sys directory already exists. This must be deleted manually before starting the server in detached mode.

Server

docker run -d --mount source=/<data-dir>/,destination=/parquet,type=bind --name presto-lp floatingwindow/presto-local-parquet

Server, with Presto Web UI

See above for details on accessing the UI.

docker run -d -p 8080:8080 --mount source=/<data-dir>/,destination=/parquet,type=bind --name presto-lp floatingwindow/presto-local-parquet

Client

Exit shell with Ctrl+D

docker exec -it presto-lp presto

Stopping the Server

docker stop presto-lp

Removing the container

docker container rm presto-lp

Building

docker build . -t presto-local-parquet

About

Docker container to run single-node Presto server with support for querying local Parquet files.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published