用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Kilo-Org/kilo-marketplace --skill hadoop命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
Debug AOTInductor (AOTI) errors and crashes. Use when encountering AOTI segfaults, device mismatch errors, constant loading failures, or runtime errors from aot_compile, aot_load, aoti_compile_and_package, or aoti_load_package.
Expert guidance for Apache Arrow, the cross-language columnar memory format for analytics workloads. Helps developers use Arrow for high-performance data interchange between systems, zero-copy reads, and efficient columnar processing in Python (PyArrow) and JavaScript (Arrow JS).
Guides agents through Apache Hudi lakehouse design. Use when managing incremental upserts, record-level mutations, timeline behavior, compaction, and Hudi-based lakehouse tables.
基于 SOC 职业分类
| name | hadoop |
| description | Manage Hadoop clusters with HDFS operations, YARN job tuning, and distributed processing diagnostics. |
| metadata | {"clawdbot":{"emoji":"🐘","requires":{"bins":["hdfs","yarn","hadoop"]},"os":["linux","darwin"]},"upstream":{"slug":"hadoop","version":"1.0.0","homepage":"https://clawic.com/skills/hadoop"},"category":"data","source":{"repository":"https://github.com/clawic/skills","path":"skills/hadoop","license_path":"LICENSE","commit":"ff40511e7588b7b91d4427b65931f420a7412bb0"}} |
If ~/hadoop/ doesn't exist or is empty, read setup.md and start the conversation naturally.
User works with Hadoop ecosystem (HDFS, YARN, MapReduce, Hive). Agent handles cluster diagnostics, job optimization, storage management, and troubleshooting distributed processing failures.
Memory lives in ~/hadoop/. See memory-template.md for structure.
~/hadoop/
├── memory.md # Cluster configs, common issues, preferences
├── clusters/ # Per-cluster notes and configs
│ └── {name}.md # Specific cluster context
└── scripts/ # Custom diagnostic scripts
| Topic | File |
|---|---|
| Setup process | setup.md |
| Memory template | memory-template.md |
| HDFS operations | hdfs.md |
| YARN tuning | yarn.md |
| Troubleshooting | troubleshooting.md |
Before any operation, check cluster health:
hdfs dfsadmin -report
yarn node -list
Never assume cluster is healthy. A single dead DataNode changes everything.
HDFS issues cascade into job failures. Always check:
hdfs dfs -df -h # Capacity
hdfs fsck / -files -blocks # Block health
A job failing with "No space left" is storage, not code.
YARN allocates based on configured scheduler. Know which is active:
yarn rmadmin -getServiceState rm1
cat /etc/hadoop/conf/yarn-site.xml | grep scheduler
Default (Capacity) vs Fair scheduler behave very differently.
Default replication=3. For temp data, suggest 1-2 to save space:
hdfs dfs -setrep -w 1 /tmp/scratch/
For critical data, verify replication is honored:
hdfs fsck /data/critical -files -blocks -replicaDetails
Hadoop logs scatter across machines. Key locations:
| Component | Log Path |
|---|---|
| NameNode | /var/log/hadoop-hdfs/hadoop-hdfs-namenode-*.log |
| DataNode | /var/log/hadoop-hdfs/hadoop-hdfs-datanode-*.log |
| ResourceManager | /var/log/hadoop-yarn/yarn-yarn-resourcemanager-*.log |
| NodeManager | /var/log/hadoop-yarn/yarn-yarn-nodemanager-*.log |
| Application | yarn logs -applicationId <app_id> |
NameNode enters safe mode on startup or low block count:
hdfs dfsadmin -safemode get # Check status
hdfs dfsadmin -safemode leave # Exit (if blocks OK)
Never force-leave if blocks are actually missing.
90% of "job killed" issues are memory:
# Container settings
yarn.nodemanager.resource.memory-mb # Total per node
yarn.scheduler.minimum-allocation-mb # Min container
mapreduce.map.memory.mb # Map task
mapreduce.reduce.memory.mb # Reduce task
Check these before assuming code is wrong.
# Navigation
hdfs dfs -ls /path
hdfs dfs -du -h /path # Size with human units
hdfs dfs -count -q /path # Quota info
# Data movement
hdfs dfs -put local.txt /hdfs/ # Upload
hdfs dfs -get /hdfs/file.txt . # Download
hdfs dfs -cp /src /dst # Copy within HDFS
hdfs dfs -mv /src /dst # Move within HDFS
# Maintenance
hdfs dfs -rm -r /path # Delete (trash)
hdfs dfs -rm -r -skipTrash /path # Delete (permanent)
hdfs dfs -expunge # Empty trash
# Find corrupt blocks
hdfs fsck / -list-corruptfileblocks
# Delete corrupt file (after confirming unrecoverable)
hdfs fsck /path/file -delete
# Force replication
hdfs dfs -setrep -w 3 /important/data/
# List applications
yarn application -list # Running
yarn application -list -appStates ALL # All states
# Application details
yarn application -status <app_id>
# Kill stuck application
yarn application -kill <app_id>
# Get logs (after completion)
yarn logs -applicationId <app_id>
yarn logs -applicationId <app_id> -containerId <container_id>
# List queues
yarn queue -list
# Queue status
yarn queue -status <queue_name>
# Move application between queues
yarn application -movetoqueue <app_id> -queue <target_queue>
Data that stays local:
What commands access:
This skill does NOT:
Install with clawhub install <slug> if user confirms:
linux — system administrationdocker — containerized deploymentsbash — shell scriptingclawhub star hadoopclawhub sync