/docker-prestodb

PrestoDB with Hive connector

Primary LanguageDockerfileMIT LicenseMIT

docker-prestodb

Build Status Docker Build Statu

This is a docker image for PrestoDB with Hive connector.

Start

docker run -d -p 8080:8080 shawnzhu/prestodb:latest

Configuration

Hive

It requires a working Hive cluster since the default configuration files are for hive connector only. See https://prestosql.io/docs/current/installation/deployment.html Where it assumes Hive metastore listens on thrift://hive-metastore:9083

It's capable to change configuration like hive.metastore.uri by binding new directory under /opt/presto/etc. E.g., given configuration file /foo/bar/hive.properties:

docker run -d -p 8080:8080 -v /foo/bar/hive.properties:/home/presto/etc/catalog/hive.properties:ro shawnzhu/prestodb:latest

DB2

It includes a db2 connector for presto so you can add another configuration file for db2:

# cat db2.properties
connector.name=db2
connection-url=jdbc:db2://ip:port/database
connection-user=myuser
connection-password=mypassword

Then:

docker run -d -p 8080:8080 -v /foo/bar/db2.properties:/home/presto/etc/catalog/db2.properties:ro shawnzhu/prestodb:latest