https://github.com/criccomini/hive-metastore-standalone
Apache Hive Metastore in Standalone Mode With Docker
https://github.com/criccomini/hive-metastore-standalone
docker github-workflow github-workflows hadoop hcatalog hive hive-metastore presto prestodb trino trinodb
Last synced: 5 months ago
JSON representation
Apache Hive Metastore in Standalone Mode With Docker
- Host: GitHub
- URL: https://github.com/criccomini/hive-metastore-standalone
- Owner: criccomini
- License: mit
- Created: 2023-06-22T15:33:33.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-22T23:55:20.000Z (about 1 year ago)
- Last Synced: 2024-07-23T03:03:42.535Z (about 1 year ago)
- Topics: docker, github-workflow, github-workflows, hadoop, hcatalog, hive, hive-metastore, presto, prestodb, trino, trinodb
- Language: Dockerfile
- Homepage:
- Size: 15.6 KB
- Stars: 10
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hive Metastore Standalone Docker Image 🐝 🐳
This repo creates a Docker image of a completely standalone Hive Metastore suitable for running in a Github Workflow or as a Docker image without the need for compose.
Unlike other Hive Metastore Docker images, this Docker image can be run without any other containers.
* ✅ No S3
* ✅ No localstack
* ✅ No minio
* ✅ No PostgreSQL
* ✅ No Hive
* ✅ No Hadoop
* ✅ No other containersThe image uses [Hive Metastore Standalone]([url](https://cwiki.apache.org/confluence/display/Hive/AdminManual+Metastore+3.0+Administration#AdminManualMetastore3.0Administration-RunningtheMetastoreWithoutHive)) configured to run [embedded Derby](https://cwiki.apache.org/confluence/display/Hive/AdminManual+Metastore+Administration#AdminManualMetastoreAdministration-Local/EmbeddedMetastoreDatabase(Derby)) for the DB and the local filesystem for the FS.
_NOTE: Only one process can connect to the metastore at a time because embedded Derby only supports one connection at a time. This should be fine for integration tests._
## Usage
The package is published to the [Github Container Registry](https://github.com/criccomini/hive-metastore-standalone/pkgs/container/hive-metastore-standalone).
```
docker pull ghcr.io/criccomini/hive-metastore-standalone:latest
```## Github Workflow
You can use the Hive Metastore for integration tests in your [Github Workflows](https://docs.github.com/en/actions/using-workflows) using this service block:
```yaml
services:
hive-metastore:
image: ghcr.io/criccomini/hive-metastore-standalone:latest
ports:
- 9083:9083
```## Logging
By default the Hive Metastore will log at INFO level. You can override this by setting the `HMS_LOGLEVEL` environment variable for the container.
## Acknowledgements
This image is based on [@naushadh](https://github.com/naushadh)'s [hive-metastore](https://github.com/naushadh/hive-metastore) repo.