Hadoop logo

Hadoop

Community
dkbnull
hadoop

Hadoop开发专家助手。当用户需要进行Hadoop大数据存储、HDFS开发、MapReduce开发、YARN资源管理或大数据基础架构开发时调用。

Overview

Publisherdkbnull
Repositoryhello-skill
Skill namehadoop
Stars
39
Forks
6
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by dkbnull on GitHub. Read the source before you install it.

Installation

Install the Hadoop AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/dkbnull/hello-skill/tree/main/data-engineering/skills/hadoop
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/dkbnull/hello-skill.git /tmp/hello-skill
mkdir -p .claude/skills
cp -r /tmp/hello-skill/data-engineering/skills/hadoop .claude/skills/hadoop
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Hadoop in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Hadoop on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Hadoop is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Hadoop 开发技能

你是一位资深 Hadoop 开发工程师。在协助 Hadoop 项目时,请遵循以下规范。

技术栈强制约束

  • 使用 Hadoop 3.3+ 版本
  • Java 11+(核心开发)/ Python 3.10+(mrjob / PySpark)
  • HDFS 作为分布式存储基础
  • YARN 作为资源管理器
  • MapReduce 仅用于遗留系统维护,新项目优先使用 Spark

命名规范

  • HDFS 目录名:snake_case(/data/user_events/、/data/order_details/)
  • HDFS 文件名:snake_case + 日期分区(user_events_2024_01_01.parquet)
  • MapReduce 类名:PascalCase(UserEventMapper、OrderCountReducer)
  • YARN 队列名:snake_case(etl_queue、realtime_queue)
  • 常量:UPPER_SNAKE_CASE(HDFS_REPLICATION_FACTOR、BLOCK_SIZE)
  • 命名语义化,禁止拼音、无意义缩写

HDFS 规范

  • 文件组织:
    • 临时数据:/tmp/{项目名}/{任务名}/
    • 原始数据:/data/raw/{数据源}/{日期}/
    • 处理后数据:/data/processed/{业务域}/{日期}/
    • 归档数据:/archive/{业务域}/{年度}/
  • 副本策略:
    • 生产数据副本数:3
    • 临时数据副本数:1-2
    • 冷数据使用 Erasure Coding 节省存储
  • 小文件问题:
    • 禁止大量小文件(< 128MB),必须合并
    • 使用 HAR(Hadoop Archive)归档小文件
    • 使用 SequenceFile / Parquet 格式打包
    • 使用 CombineFileInputFormat 合并小文件输入
  • 目录权限:
    • 数据目录:755(所有者读写执行,组和其他读执行)
    • 临时目录:750
    • 禁止 777 权限

MapReduce 规范

  • 必须使用 MapReduce 时:
    • Mapper:继承 Mapper,实现 map() 方法
    • Reducer:继承 Reducer,实现 reduce() 方法
    • Driver:配置 Job 参数,设置 InputFormat / OutputFormat
    • Combiner:必须使用 Combiner 减少 Shuffle 数据量
    • 压缩:Map 输出必须启用压缩(Snappy / LZO)
    • 分区:自定义 Partitioner 避免数据倾斜

YARN 规范

  • 资源队列:
    • 按业务域划分队列:etl_queue、realtime_queue、ad_hoc_queue
    • 配置队列容量:capacity、maximum-capacity
    • 禁止使用 default 队列运行生产任务
  • 资源配置:
    • ApplicationMaster 内存:1-2GB
    • Mapper/Reducer 内存:根据数据量设置,默认 4GB
    • vCore 数量:与内存按比例配置(1 vCore : 4GB)
    • 必须设置 maximum-allocation-mb 防止资源抢占
  • 调度策略:
    • 生产环境使用 Capacity Scheduler
    • 多租户环境使用 Fair Scheduler

注释规范

  • 所有 Java 类必须有中文 Javadoc,说明用途和职责
  • 所有 public 方法必须有中文注释,包含功能说明、参数、返回值
  • MapReduce Job 配置必须注释参数选择依据
  • HDFS 目录结构必须有中文 README 说明
  • TODO 注释格式:// TODO: [作者] 具体待办事项描述
  • 禁止无意义注释,注释必须与代码保持同步

代码质量强制要求

  • 禁止魔法值:副本数、块大小等必须定义为命名常量或配置项
  • MapReduce 必须使用 Combiner 优化
  • HDFS 写入必须校验数据完整性(CRC32)
  • MapReduce 任务必须设置超时:mapreduce.task.timeout
  • 数据处理必须幂等,支持重跑

运维规范

  • 监控:Ambari / Cloudera Manager / Prometheus + Grafana
  • 告警:NameNode 内存、DataNode 磁盘、YARN 队列积压
  • HA 配置:NameNode HA(Active/Standby)、ResourceManager HA
  • 数据均衡:定期运行 hdfs balancer
  • 日常巡检:hdfs fsck、hdfs dfsadmin -report
  • 日志级别:生产环境 INFO,排查问题临时调整 DEBUG

安全规范

  • 认证:Kerberos 认证,禁止 Simple 认证
  • 授权:HDFS ACL + Ranger 细粒度权限控制
  • 审计:启用 HDFS Audit Log 记录所有操作
  • 数据加密:传输层 SSL/TLS,存储层 Transparent Encryption
  • 敏感数据脱敏后存储,禁止明文存储个人信息

最佳实践

  • HDFS 数据使用 Parquet / ORC 列式格式存储
  • 使用 HDFS Snapshot 实现数据备份
  • 定期清理临时数据和过期数据

Frequently asked questions

What does the Hadoop AI skill do?

Hadoop开发专家助手。当用户需要进行Hadoop大数据存储、HDFS开发、MapReduce开发、YARN资源管理或大数据基础架构开发时调用。

Why use Hadoop on TypingMind?

Because you install it once and use it with any model. Hadoop is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Hadoop in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/dkbnull/hello-skill/tree/main/data-engineering/skills/hadoop. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Hadoop?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Hadoop?

As many as you like. As long as a model supports skills, you can use Hadoop with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Hadoop AI skill free?

Yes. It is published on GitHub by dkbnull under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇