Giter Club home page Giter Club logo

hive-metastore-docker's Introduction

hive-metastore-docker

Containerized Apache Hive Metastore for horizontally scalable Hive Metastore deployments backed by a PostgreSQL-compatible database.

The hive-metastore image is stored on Docker Hub in the rtdl/hive-metastore repository.

rtdl - The Real-Time Data Lake

This is a sub-project of rtdl โ€“ the real-time data lake. Please go to rtdl's repo and give it a star.

How to Use

To get a persistent Apache Hive Metastore instance running in a container backed by a PostgreSQL-compatible database (all files stored in storage/ folder):

  1. Run docker compose -f docker-compose.init.yml up -d.
    • Note: This configuration should be fault-tolerant, but if any containers or processes fail when running this, run docker compose -f docker-compose.init.yml down and retry.
  2. After containers rtdl_catalog-db-init and rtdl_catalog-init exit and complete with EXITED (0), kill and delete the rtdl container set by running docker compose -f docker-compose.init.yml down
  3. Run docker compose up -d every time after.
    • docker compose down to stop.

Note: To start from scratch, first run the below commands from the repo's root folder.

% rm -rf storage/

Notes

  • This image is not interactive and has no default ENTRYPOINT. You must use the entrypoint option along with a corresponding shell script and volumes to load scripts to execute.
  • A PostgreSQL-compatible database is required to run the container. Define your connection credentials in conf/metastore-site.xml and use the 'volumes' option to load your metastore-site.xml file to /opt/apache-hive-metastore-{version}-bin/conf/metastore-site.xml.
  • This image opens port 9083. Use this port to connect to your Hive Metastore instance.

hive-metastore-docker's People

Contributors

thtmnisamnstr avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.