Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
gmouchakis Merge pull request #18 from mcw0933/hive_version_arg
Add build arg and default value for HIVE_VERSION
Latest commit 87ad413 Oct 22, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
conf working version with postgresql metastore Aug 16, 2016
.gitignore added docker compose May 27, 2016
Dockerfile Add build arg and default value for HIVE_VERSION Oct 5, 2018
Makefile new version of hive, wait_for_it script, compose v3 Feb 5, 2018
docker-compose.yml Exposed hive-metastore port Apr 11, 2018 fix entrypoint, add wait_for_it Feb 5, 2018
hadoop-hive.env fix deploy on swarm. to address #15 May 30, 2018 working version with postgresql metastore Aug 16, 2016

Gitter chat


This is a docker container for Apache Hive 2.3.2. It is based on so check there for Hadoop configurations. This deploys Hive and starts a hiveserver2 on port 10000. Metastore is running with a connection to postgresql database. The hive configuration is performed with HIVE_SITE_CONF_ variables (see hadoop-hive.env for an example).

To run Hive with postgresql metastore:

    docker-compose up -d

To deploy in Docker Swarm:

    docker stack deploy -c docker-compose.yml hive

To run a PrestoDB 0.181 with Hive connector:

  docker-compose up -d presto-coordinator

This deploys a Presto server listens on port 8080


Load data into Hive:

  $ docker-compose exec hive-server bash
  # /opt/hive/bin/beeline -u jdbc:hive2://localhost:10000
  > CREATE TABLE pokes (foo INT, bar STRING);
  > LOAD DATA LOCAL INPATH '/opt/hive/examples/files/kv1.txt' OVERWRITE INTO TABLE pokes;

Then query it from PrestoDB. You can get presto.jar from PrestoDB website:

  $ wget
  $ mv presto-cli-0.183-executable.jar presto.jar
  $ chmod +x presto.jar
  $ ./presto.jar --server localhost:8080 --catalog hive --schema default
  presto> select * from pokes;


You can’t perform that action at this time.