Overview

Full name
docker.io/apache/hive
Registry
docker.io
Namespace
apache
Repository
hive
Cached tags
12
Last synced
07/05/2026, 05:18 AM

Introduction

Apache Hive 数据仓库 SQL 引擎镜像,HiveServer2 提供 JDBC/Thrift 查询接口,HDFS/S3 上大规模 batch SQL 分析。

Details

apache/hive 运行 Apache Hive 数据仓库,HiveServer2 提供 JDBC/Thrift SQL 查询接口,将 SQL 编译为 MapReduce/Tez/Spark 作业。定位为数据仓库查询服务,需 Metastore DB 与 HDFS/S3 存储;K8s Deployment 大数据 SQL 分析后端。

快速启动

docker run -d --name hive \
  -p 10000:10000 \
  -e SERVICE_NAME=hiveserver2 \
  docker.io/apache/hive:latest

推荐实践

docker run -d --name hive \
  --restart unless-stopped \
  -p 10000:10000 \
  -e SERVICE_NAME=hiveserver2 \
  -e HIVE_METASTORE_URI=thrift://metastore:9083 \
  docker.io/apache/hive:4.0.0

核心参数说明

  • -p 10000:10000 — HiveServer2 JDBC/Thrift
  • -e HIVE_METASTORE_URI — Metastore 地址
  • -e SERVICE_NAME — hiveserver2/metastore
  • 存储 — HDFS/S3 表数据

Kubernetes

apiVersion: apps/v1
kind: Deployment
metadata:
  name: hive-server2
spec:
  replicas: 2
  selector:
    matchLabels:
      app: hive
  template:
    metadata:
      labels:
        app: hive
    spec:
      containers:
        - name: hive
          image: docker.io/apache/hive:4.0.0
          ports:
            - containerPort: 10000
          env:
            - name: SERVICE_NAME
              value: hiveserver2
            - name: HIVE_METASTORE_URI
              value: thrift://hive-metastore:9083
---
apiVersion: v1
kind: Service
metadata:
  name: hive-server2
spec:
  selector:
    app: hive
  ports:
    - port: 10000
      targetPort: 10000

Metastore 与 HDFS 独立部署;Spark/Tez 执行引擎外置。

Latest tags (20)

View all 12 tags →
TagArchPushed AtSizeDigestSyncWishAction
docker.io/apache/hive
:standalone-metastore-nightly
linux/amd64linux/arm64
2026/07/04 15:29464.4 MBsha256:2ffd413d5a61
docker.io/apache/hive
:nightly
linux/amd64linux/arm64
2026/07/04 15:141.6 GBsha256:6d528009d611
docker.io/apache/hive
:standalone-metastore-4.2.0
linux/arm64linux/amd64
2025/11/28 22:56440.7 MBsha256:53bc207fa3d8
docker.io/apache/hive
:4.2.0
linux/amd64linux/arm64
2025/11/28 21:261.4 GBsha256:2a33b8fcd12f
docker.io/apache/hive
:standalone-metastore-4.1.0
linux/amd64linux/arm64
2025/07/30 13:381.2 GBsha256:ffb37d77f821
docker.io/apache/hive
:4.1.0
linux/amd64linux/arm64
2025/07/30 13:221.5 GBsha256:f6860e7e1191
docker.io/apache/hive
:4.0.1
linux/amd64linux/arm64
2024/10/02 16:561.1 GBsha256:848e58e8bd76
docker.io/apache/hive
:4.0.0
linux/amd64linux/arm64
2024/03/29 19:011.1 GBsha256:bd3570dfbc0a
docker.io/apache/hive
:3.1.3
linux/amd64
2023/09/05 18:09611.1 MBsha256:d102ba29ad07
docker.io/apache/hive
:4.0.0-beta-1
linux/amd64linux/arm64
2023/08/25 20:46968.3 MBsha256:889c4ae2e73d
docker.io/apache/hive
:4.0.0-alpha-1
linux/amd64
2023/05/03 12:20668.2 MBsha256:b06cfa5eb6e7
docker.io/apache/hive
:4.0.0-alpha-2
linux/amd64
2023/05/03 03:03915.4 MBsha256:69e482fdcebb