ILUM Hive: Apache Hive Metastore & HiveServer2 with cloud connectors (S3, GCS, Azure) for Spark
5.4K
Production-ready Apache Hive Metastore and HiveServer2 images optimized for Kubernetes and Ilum.
The ilum/hive image provides a robust implementation of Apache Hive 3.1.3, configured to run as a standalone Metastore or HiveServer2 (HS2). It is specifically designed for cloud-native environments with built-in support for major cloud storage providers.
hive with UID 1001)linux/amd64 and linux/arm64# Run Hive Metastore with local Derby database
docker run -d \
--name ilum-hive-metastore \
-e SERVICE_NAME=metastore \
-p 9083:9083 \
ilum/hive:<version>
For production deployments, use the official Ilum Hive Metastore Helm Chart.
<version>: Apache Hive 3.1.3 + Hadoop 3.3.6 + Tez 0.9.2TIP: Choosing a version: Always use a version that matches your Hadoop/Spark ecosystem requirements (Hadoop 3.x is standard for Ilum).
| Variable | Description |
|---|---|
| SERVICE_NAME | Defines the service to run: metastore or hiveserver2 |
| DB_DRIVER | Database driver: postgres (recommended) or derby (default) |
| Variable | Default Value | Description |
|---|---|---|
| IS_RESUME | false | Set to true to skip schema initialization on restart |
| SCHEMA_COMMAND | initSchema | Schema tool action: initSchema or upgradeSchema |
| SERVICE_OPTS | - | Additional JVM options (e.g. heap size) |
| VERBOSE | false | Enable verbose logging during startup |
Variables can also be defined with hyphens if required by your configuration management.
| Container Path | Purpose |
|---|---|
/opt/hive/data/warehouse | Default Hive Warehouse location (Local/S3/GCS) |
/opt/hive/conf | Hive configuration — mount custom XMLs here |
/home/hive/.beeline | Beeline command history and configuration |
# docker-compose example
volumes:
- ./hive-site.xml:/opt/hive/conf/hive-site.xml
- ./warehouse:/opt/hive/data/warehouse
TIP:
Use HIVE_CUSTOM_CONF_DIR env to point to a folder with custom hive-site.xml and core-site.xml. They will be automatically linked at startup.
| Port | Service |
|---|---|
9083 | Hive Metastore (Thrift) |
10000 | HiveServer2 (Thrift/JDBC) |
10002 | HiveServer2 Web UI |
The image runs as user hive (UID 1001). When mounting host volumes, ensure directories have appropriate permissions:
# On host
sudo chown -R 1001:1001 /path/to/warehouse /path/to/conf
CAUTION: Never pass passwords or cloud keys directly in environment variables!
Recommended methods:
Before production deployment, scan the image:
# Trivy
trivy image ilum/hive:<version>
Run command from the docker/ilum-hive-metastore directory:
docker buildx build \
--platform linux/amd64,linux/arm64 \
-t ilum/hive:<version> \
--push .
dive ilum/hive:<version>
# Syft
syft ilum/hive:<version> -o spdx-json > sbom.json
Content type
Image
Digest
sha256:959ad8d04…
Size
938.6 MB
Last updated
5 months ago
docker pull ilum/hive:4.2.0