Skip to content

meneal/docker-prestodb

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:0.193

Configuration

Hive

It requires a working Hive cluster since the default configuration files are for hive connector only. See https://prestodb.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:/opt/presto/etc/catalog/hive.properties:ro shawnzhu/prestodb:0.193

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:/opt/presto/etc/catalog/db2.properties:ro shawnzhu/prestodb:0.193

About

Presto server with DB2 connector

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 100.0%