Overview
- Full name
docker.io/sslhep/hive-metastore- Registry
- docker.io
- Namespace
- sslhep
- Repository
- hive-metastore
- Cached tags
- 2
- Last synced
- 07/06/2026, 09:37 PM
Introduction
Apache Hive Metastore 服务镜像,为 Hive、Spark SQL 与 Presto 提供表结构元数据,需连接外部 PostgreSQL/MySQL 作为持久化库。
Details
Hive Metastore 是 Hadoop 生态的元数据中枢,存储库表、分区、SerDe 等 catalog 信息,供 HiveServer2、Spark Thrift Server 等查询引擎访问。本镜像运行 Thrift 服务进程,必须配置外部关系型数据库(PostgreSQL/MySQL)而非内置 Derby 用于生产。典型部署于数据湖平台,与 HDFS/S3 对象存储配合;首次启动需执行 schema 初始化。
快速启动
docker run -d --name hive-metastore \
-p 9083:9083 \
-e DATABASE_HOST=postgres \
-e DATABASE_PORT=5432 \
-e DATABASE_USER=hive -e DATABASE_PASSWORD=secret \
docker.io/sslhep/hive-metastore:latest
推荐实践
docker run -d --name hive-metastore \
--restart unless-stopped \
-p 9083:9083 \
-e DATABASE_TYPE=postgres \
-e DATABASE_HOST=192.168.1.10 \
-e DATABASE_PORT=5432 \
-e DATABASE_USER=hive -e DATABASE_PASSWORD=secret \
-e DATABASE_DB=hive_metastore \
docker.io/sslhep/hive-metastore:3.1.3
核心参数说明
-p 9083:9083— Thrift Metastore 默认端口-e DATABASE_HOST/-e DATABASE_PORT— 外部元数据库地址-e DATABASE_USER/-e DATABASE_PASSWORD— 库凭据-e DATABASE_DB— 元数据 schema 库名--restart unless-stopped— 元数据服务高可用基础
Latest tags (20)
View all 2 tags →| Tag | Arch | Pushed At | Size | Digest | Sync | Wish | Action |
|---|---|---|---|---|---|---|---|
docker.io/sslhep/hive-metastore :3.1.3 | linux/amd64 | 2023/12/29 23:02 | 611.1 MB | sha256:9e80af083079… | |||
docker.io/sslhep/hive-metastore :3.1.2 | linux/amd64 | 2023/05/15 23:15 | 1.2 GB | sha256:90f49a42ce1b… |