Sign inSign up

simplifi/docker-presto

By simplifi

Updated about 7 years ago

A Docker image for Presto

Image
2

2.7K

simplifi/docker-presto repository overview

docker-presto

Travis Build Status Docker Hub Docker Pulls Docker Stars

This repository contains a Dockerfile of Presto.

Installation

Pull the image from the Docker repository.

docker pull simplifi/docker-presto:latest

Build

docker build --rm -t simplifi/docker-presto:latest .

Usage

To start a single node Presto cluster
docker run -p 8080:8080 simplifi/docker-presto:latest

Configuration

Configuration is handled by setting the environment variables outlined below.

node.properties
PropertyEnvironment VariableDefault ValueDescription
node.environmentPRESTO_NODE_ENVIRONMENTdockerThe name of the environment.
node.idPRESTO_NODE_ID(uuid generated by uuidgen)The unique identifier for this installation of Presto.
config.properties
PropertyEnvironment VariableDefault ValueDescription
coordinatorPRESTO_CONF_COORDINATORtrueAllow this Presto instance to function as a coordinator (accept queries from clients and manage query execution).
node-scheduler.include-coordinatorPRESTO_CONF_INCLUDE_COORDINATORtrueAllow scheduling work on the coordinator.
http-server.http.portPRESTO_CONF_HTTP_PORT8080Specifies the port for the HTTP server. Presto uses HTTP for all communication, internal and external.
discovery-server.enabledPRESTO_CONF_DISCOVERY_SERVER_ENABLEDtrueRun an embedded version of the Discovery service.
discovery.uriPRESTO_CONF_DISCOVERY_URIhttp://localhost:8080The URI to the Discovery server.
query.max-memoryPRESTO_CONF_QUERY_MAX_MEMORY5GBThe maximum amount of distributed memory that a query may use.
query.max-memory-per-nodePRESTO_CONF_QUERY_MAX_MEMORY_PER_NODE1GBThe maximum amount of user memory that a query may use on any one machine.
query.max-total-memory-per-nodePRESTO_CONF_QUERY_MAX_TOTAL_MEMORY_PER_NODE2GBThe maximum amount of user and system memory that a query may use on any one machine.
Catalogs
JMX
PropertyEnvironment VariableDefault ValueDescription
N/APRESTO_CATALOG_JMXtrueShould this catalog be enabled?
N/APRESTO_CATALOG_JMX_NAMEjmxName to use for the catalog
Hive
PropertyEnvironment VariableDefault ValueDescription
N/APRESTO_CATALOG_HIVEfalseShould this catalog be enabled?
N/APRESTO_CATALOG_HIVE_NAMEhiveName to use for the catalog
hive.recursive-directoriesPRESTO_CATALOG_HIVE_RECURSIVE_DIRECTORIEStrueEnable reading data from subdirectories of table or partition locations.
hive.allow-drop-tablePRESTO_CATALOG_HIVE_ALLOW_DROP_TABLEtrueEnable the ability to drop tables.
hive.metastore.uriPRESTO_CATALOG_HIVE_METASTORE_URIfileThe URI(s) of the Hive metastore to connect to using the Thrift protocol. If set to file, it will use a local file-based hive metastore.
N/APRESTO_CATALOG_HIVE_USE_S3falseShould we configure hive to connect to s3?
hive.s3.aws-access-keyPRESTO_CATALOG_HIVE_S3_AWS_ACCESS_KEYAWS access key to use.
hive.s3.aws-secret-keyPRESTO_CATALOG_HIVE_S3_AWS_SECRET_KEYAWS secret key to use.
hive.s3.endpointPRESTO_CATALOG_HIVE_S3_ENDPOINTThe S3 storage endpoint server.
hive.s3.use-instance-credentialsPRESTO_CATALOG_HIVE_S3_USE_INSTANCE_CREDENTIALSfalseUse the EC2 metadata service to retrieve API credentials (defaults to true). This works with IAM roles in EC2.
hive.s3select-pushdown.enabledPRESTO_CATALOG_HIVE_S3_SELECT_PUSHDOWN_ENABLEDtrueEnable query pushdown to AWS S3 Select service.

Example:

docker run -e PRESTO_CATALOG_HIVE=true -it simplifi/docker-presto

How to contribute

This project has some clear Contribution Guidelines and expectations that you can read here (CONTRIBUTING).

The contribution guidelines outline the process that you'll need to follow to get a patch merged.

Tag summary

Content type

Image

Digest

Size

1.5 GB

Last updated

about 7 years ago

docker pull simplifi/docker-presto