镜像概览

完整引用
docker.io/gchq/hdfs
Registry
docker.io
命名空间
gchq
仓库
hdfs
已缓存 Tag 数
29
最近同步
07/06/2026, 12:36 PM

简介

GCHQ 维护的 Hadoop HDFS 单机/伪分布式镜像,用于大数据存储原型与开发测试,生产集群应使用官方 HA 编排方案。

详细介绍

gchq/hdfs 打包 NameNode 与 DataNode 进程,适合本地开发或 PoC 验证 MapReduce/Spark 读写 HDFS。典型用于安全研究或数据平台入门实验,与 bitnami/hadoop 相比镜像维护方不同。生产 PB 级存储应使用 HA NameNode 与多 DataNode 集群;此镜像适合 dev,需 volume 持久化 /hdfs/data 并预留 JVM 内存。

快速启动

docker run -d --name hdfs \
  -p 9870:9870 -p 8020:8020 \
  -v $(pwd)/data:/hdfs/data \
  docker.io/gchq/hdfs:latest

推荐实践

docker run -d --name hdfs \
  --restart unless-stopped \
  -p 9870:9870 -p 8020:8020 -p 9864:9864 \
  -v /data/hdfs:/hdfs/data \
  -e HDFS_HEAPSIZE=2048 \
  docker.io/gchq/hdfs:3.3.6

核心参数说明

  • -p 9870:9870 — NameNode Web UI
  • -p 8020:8020 — HDFS RPC 端口
  • -v .../data:... — 块数据持久化
  • -e HDFS_HEAPSIZE — JVM 堆大小(MB)
  • --restart unless-stopped — 开发环境持续可用
  • 固定 tag — Hadoop 大版本 pin

Kubernetes

apiVersion: apps/v1
kind: StatefulSet
metadata:
  name: hdfs
spec:
  serviceName: hdfs
  replicas: 1
  selector:
    matchLabels:
      app: hdfs
  template:
    metadata:
      labels:
        app: hdfs
    spec:
      containers:
        - name: hdfs
          image: docker.io/gchq/hdfs:3.3.6
          ports:
            - containerPort: 9870
            - containerPort: 8020
          resources:
            requests:
              memory: 4Gi
          volumeMounts:
            - name: data
              mountPath: /hdfs/data
  volumeClaimTemplates:
    - metadata:
        name: data
      spec:
        accessModes: [ReadWriteOnce]
        resources:
          requests:
            storage: 500Gi
---
apiVersion: v1
kind: Service
metadata:
  name: hdfs
spec:
  selector:
    app: hdfs
  ports:
    - port: 8020
      targetPort: 8020

仅 dev/staging 单副本;生产 HA 请迁移至官方 Hadoop Helm,PVC 与 memory request 按数据量规划。

最新 Tag(20 条)

查看全部 29 个 Tag →
Tag架构推送时间大小Digest同步期望操作
docker.io/gchq/hdfs
:3.2
linux/amd64
2025/02/12 00:44207.0 MBsha256:029a589e92ec
docker.io/gchq/hdfs
:3.2.2
linux/amd64
2025/02/12 00:44207.0 MBsha256:029a589e92ec
docker.io/gchq/hdfs
:latest
linux/amd64
2025/02/12 00:39251.9 MBsha256:5ec58edbb2db
docker.io/gchq/hdfs
:3
linux/amd64
2025/02/12 00:39251.9 MBsha256:5ec58edbb2db
docker.io/gchq/hdfs
:3.3
linux/amd64
2025/02/12 00:39251.9 MBsha256:5ec58edbb2db
docker.io/gchq/hdfs
:3.3.3
linux/amd64
2025/02/12 00:39251.9 MBsha256:5ec58edbb2db
docker.io/gchq/hdfs
:3.2.2_build.1.1.1
linux/amd64
2023/04/25 23:28202.2 MBsha256:921caf9d5b8f
docker.io/gchq/hdfs
:3.3.3_build.2.0.0-alpha-0.3
linux/amd64
2022/10/11 21:51241.3 MBsha256:c93477cbe4c5
docker.io/gchq/hdfs
:3.2.2_build.2.0.0-alpha-0.1
linux/amd64
2022/05/06 22:27196.4 MBsha256:37fc3934f8eb
docker.io/gchq/hdfs
:3.2.2_build.1.0.0
linux/amd64
2022/04/01 19:37196.4 MBsha256:c54c339ba84b
docker.io/gchq/hdfs
:3.2.1
linux/amd64
2021/12/16 19:20193.2 MBsha256:72f007f2694f
docker.io/gchq/hdfs
:3.2.1_build.0.17.1
linux/amd64
2021/12/16 19:20193.2 MBsha256:72f007f2694f
docker.io/gchq/hdfs
:3.2.1_build.0.17.0
linux/amd64
2021/12/15 19:39193.2 MBsha256:3449bbe5a226
docker.io/gchq/hdfs
:3.2.1_build.0.16.0
linux/amd64
2021/10/23 00:25193.2 MBsha256:7f1cc2ede644
docker.io/gchq/hdfs
:3.2.1_build.0.15.0
linux/amd64
2021/09/24 22:21193.2 MBsha256:b7ff92151b61
docker.io/gchq/hdfs
:3.2.1_build.0.14.0
linux/amd64
2021/08/05 04:43193.2 MBsha256:c0ebcb5a216f
docker.io/gchq/hdfs
:3.2.1_build.0.13.0
linux/amd64
2021/07/21 23:24193.2 MBsha256:fa61a2ea8572
docker.io/gchq/hdfs
:3.2.1_build.0.12.0
linux/amd64
2021/05/14 20:07193.2 MBsha256:72886b09af67
docker.io/gchq/hdfs
:3.2.1_build.0.11.0
linux/amd64
2021/04/20 19:57193.1 MBsha256:465d1358afdc
docker.io/gchq/hdfs
:3.2.1_build.0.10.0
linux/amd64
2021/02/03 22:37193.1 MBsha256:a3e94b4f8020