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
.
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
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
Keep the container, and save schemas for re-use later.
Exit shell with Ctrl+D
docker run -it --mount source=/<data-dir>/,destination=/parquet,type=bind --name presto-lp floatingwindow/presto-local-parquet
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
docker start -i presto-lp
docker container rm presto-lp
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.
docker run -d --mount source=/<data-dir>/,destination=/parquet,type=bind --name presto-lp floatingwindow/presto-local-parquet
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
Exit shell with Ctrl+D
docker exec -it presto-lp presto
docker stop presto-lp
docker container rm presto-lp
docker build . -t presto-local-parquet