glue-diagnostics
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "glue-diagnostics":https://skillpi.com/zh/skills/deepskill-8fb71712d5f260b4c77947a21c69c22c76e89b185699eb4874a4e2e0d2fce7d4。安装前核对上游来源和版本:https://github.com/Kilo-Org/kilo-marketplace。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
AWS Glue 诊断手册:通过分析 ETL 作业、爬虫、连接、数据目录、DPU 利用率、Spark 执行与作业书签,按结构化操作流程调查和排查 Glue 问题。适用于作业失败、超时、OOM、执行器或驱动崩溃、爬虫失败、模式或分区问题、JDBC/VPC/S3 连接问题、数据目录同步与模式演进冲突、DPU 配置、Shuffle 瓶颈、数据倾斜、转换或书签问题、数据质量、IAM 或加密问题,以及 Glue Studio 或作业生成相关故障等情况。
介绍来源: third_party · Kilo-Org · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 适合谁
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: glue-diagnostics
description: >
Use this skill to investigate and troubleshoot AWS Glue problems by analyzing
ETL jobs, crawlers, connections, Data Catalog, DPU utilization, Spark
execution, and job bookmarks following structured runbooks. Activate when: job
failures, job timeouts, OOM errors, Spark executor or driver crashes, crawler
failures, schema detection issues, partition problems, JDBC connection
failures, VPC/subnet connectivity, S3 endpoint access, Data Catalog sync
issues, schema evolution conflicts, DPU sizing problems, shuffle bottlenecks,
data skew, transformation errors, bookmark issues, data quality failures, IAM
permission errors, encryption problems, Glue Studio visual editor errors, job
generation failures, or the user says something is wrong with Glue without
naming specific symptoms.
compatibility: >
Requires AWS CLI or SDK access with Glue, S3, CloudWatch Logs, IAM, EC2 (for
VPC/connections), and optionally KMS permissions.
metadata:
upstream:
version: 1.0.0
last_updated: '2025-04-12'
category: data
source:
repository: 'https://github.com/aws-samples/sample-ai-agent-skills'
path: glue-troubleshooting
license_path: LICENSE
commit: 03fd42d6d0a40b6e9c1c35fe5015d53bfde1a789Glue Diagnostics
When to use
Any AWS Glue investigation where the console alone is insufficient — job failures, OOM errors, Spark crashes, crawler schema misdetection, connection timeouts, Data Catalog drift, DPU under/over-provisioning, data skew, bookmark corruption, or Glue Studio generation errors.
Investigation workflow
Step 1 — Collect and triage
aws glue get-job --name <job-name>
aws glue get-job-run --job-name <job-name> --run-id <run-id>
aws glue batch-get-jobs --job-names <job1> <job2>
aws glue get-crawler --name <crawler-name>
aws glue get-connection --name <connection-name>
aws logs filter-log-events --log-group-name /aws-glue/jobs/logs-v2 --log-stream-name-prefix <run-id>
Step 2 — Domain deep dive
aws glue get-job-runs --job-name <job-name> --max-results 10
aws glue get-crawler-metrics --crawler-name-list <crawler-name>
aws glue get-databases
aws glue get-tables --database-name <db-name>
aws glue get-partitions --database-name <db-name> --table-name <table-name>
aws glue get-job-bookmark --job-name <job-name>
aws cloudwatch get-metric-statistics --namespace Glue --metric-name glue.driver.aggregate.bytesRead --dimensions Name=JobName,Value=<job-name> --start-time <iso> --end-time <iso> --period 300 --statistics Sum
Read references/glue-guardrails.md before concluding on any Glue issue.
Tool quick reference
| Tool / API | When to use |
|---|---|
glue get-job |
Job configuration, Glue version, DPU, worker type |
glue get-job-run |
Specific run status, error message, execution time |
glue batch-get-jobs |
Retrieve multiple job configs at once |
glue get-job-runs |
Job run history, failure patterns |
glue get-crawler |
Crawler config, targets, schedule, schema change policy |
glue get-crawler-metrics |
Crawler runtime stats, tables created/updated |
glue get-connection |
JDBC/network connection config, VPC, subnet |
glue get-databases / get-tables |
Data Catalog metadata, schema definitions |
glue get-partitions |
Partition metadata, partition keys, storage location |
glue get-job-bookmark |
Bookmark state for incremental processing |
logs filter-log-events |
Glue job CloudWatch logs for Spark errors |
cloudwatch get-metric-statistics |
Glue job metrics (bytes read/written, DPU usage) |
Gotchas: AWS Glue
- DPU sizing matters: G.1X (1 DPU per worker, 16 GB memory), G.2X (2 DPU, 32 GB), G.4X (4 DPU, 64 GB), G.8X (8 DPU, 128 GB). Under-provisioning causes OOM; over-provisioning wastes cost.
- Spark executor OOM vs driver OOM: executor OOM means data partitions are too large (repartition or increase worker type). Driver OOM means too much data collected to the driver (avoid collect(), reduce broadcast join size).
- Job bookmarks track processed data for incremental loads. Bookmarks only work with S3 sources using job.init()/job.commit(). Resetting bookmarks reprocesses all data.
- Crawler schema evolution: crawlers can add new columns but may not handle type changes gracefully. Schema change policy (UPDATE_IN_DATABASE vs LOG) controls behavior.
- Glue connections for JDBC require VPC, subnet, and security group configuration. The subnet must have a NAT gateway or VPC endpoints for Glue service access.
- Glue Data Catalog vs Hive metastore: Glue Data Catalog is the default metastore for Glue jobs. External Hive metastore requires explicit configuration and network connectivity.
- Glue Studio visual editor has limitations: complex transformations may require custom code nodes. Not all PySpark/Scala operations are available as visual transforms.
- Spark UI is available for Glue 2.0+ jobs via the Glue console. It provides DAG visualization, stage details, and executor metrics for debugging performance issues.
- Job timeout defaults to 48 hours (2880 minutes). Long-running jobs may silently consume DPUs. Always set an explicit timeout.
- Glue version compatibility: Glue 2.0 (Spark 2.4), Glue 3.0 (Spark 3.1), Glue 4.0 (Spark 3.3). Library availability and behavior differ across versions.
- Partition management: too many small partitions cause excessive S3 LIST calls. Too few large partitions cause OOM. Aim for 128 MB–512 MB per partition.
- S3 eventual consistency impact: S3 provides strong read-after-write consistency since December 2020, but Glue Data Catalog partition metadata updates may still lag behind S3 changes.
Worker type comparison
| Worker Type | DPU | Memory | vCPU | Use Case |
|---|---|---|---|---|
| G.1X | 1 | 16 GB | 4 | Standard ETL, small-medium datasets |
| G.2X | 2 | 32 GB | 8 | Memory-intensive transforms, large joins |
| G.4X | 4 | 64 GB | 16 | ML transforms, very large datasets |
| G.8X | 8 | 128 GB | 32 | Massive datasets, complex aggregations |
| G.025X | 0.25 | 2 GB | 2 | Python shell jobs only |
| Z.2X | 2 | 32 GB | 8 | Ray jobs (Glue 4.0+) |
Glue version comparison
| Version | Spark | Python | Key Features |
|---|---|---|---|
| Glue 2.0 | 2.4 | 3.7 | Spark UI, no startup overhead |
| Glue 3.0 | 3.1 | 3.7 | Optimized shuffle, auto-scaling |
| Glue 4.0 | 3.3 | 3.10 | Ray support, Python 3.10, improved performance |
Anti-hallucination rules
- Always cite specific job run error messages, crawler metrics, or CloudWatch log entries as evidence.
- Never assume OOM is always executor-side. Check whether the error is on the driver or executor — the fix is different.
- Job bookmarks only work with supported sources (S3, JDBC) and require job.init()/job.commit() calls. Never claim bookmarks work automatically with all sources.
- Crawler schema changes depend on the SchemaChangePolicy. Never assume crawlers automatically update table schemas.
- Glue connections require VPC networking. Never suggest JDBC connections work without proper VPC, subnet, and security group configuration.
- Spend no more than 2 minutes on any single hypothesis. Pivot if inconclusive.
28 runbooks
| Category | IDs | Covers |
|---|---|---|
| A — Jobs | A1–A4 | Job failures, timeout, OOM, Spark errors |
| B — Crawlers | B1–B3 | Crawler failures, schema detection, partition issues |
| C — Connections | C1–C3 | JDBC connection failures, VPC/subnet, S3 endpoint |
| D — Data Catalog | D1–D2 | Catalog sync issues, schema evolution |
| E — Performance | E1–E3 | DPU sizing, shuffle issues, data skew |
| F — ETL | F1–F3 | Transformation errors, bookmark issues, data quality |
| G — Security | G1–G2 | IAM permissions, encryption |
| H — Glue Studio | H1–H2 | Visual editor errors, job generation |
| Z — Catch-All | Z1 | General troubleshooting |
版本历史
-
skills-20261103210927-6c1b454
GitHub ↗
原版更新说明
Automated skills release from commit 6c1b4543cac1d45a80bf5904e4b69ac315117323
-
skills-20260928190452-ff51758
GitHub ↗
原版更新说明
Automated skills release from commit ff51758b06b8249007116184096765d47bdb7505
-
skills-20260924105536-d31110d
GitHub ↗
原版更新说明
Automated skills release from commit d31110d62dc0bd00c22f1d6f6a630d1e702a0049
-
skills-20260923085113-cea285e
GitHub ↗
原版更新说明
Automated skills release from commit cea285ef0e4d6ec47cd2fd9fdbca03813a3363c7
-
skills-20260922193956-97d7333
GitHub ↗
原版更新说明
Automated skills release from commit 97d7333d8200e5ac556c659c8669f3a83ba10866
此处仅展示最近 5 个版本。 在原站查看完整版本历史 ↗
当前收录版本
0.0.1
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 覆盖 AWS Glue 故障诊断的完整生命周期,从作业失败、OOM 到连接问题和数据目录同步
- 提供 28 个结构化 runbook,适用于企业级数据工程高频痛点场景
亮点
- 触发词覆盖全面且边界清晰,涵盖 job failures、crawler issues、IAM errors 等 20+ 具体症状
- description 位置正确,内容完整无截断
亮点
- Phase 划分清晰(Collect and triage → Domain deep dive),含端到端 CLI 示例
- frontmatter 完整,文档结构专业,包含 Worker/Glue 版本对比等实用参考
待提升项
-
引用文件缺失 原报告严重程度:重大
SKILL.md 中引用了 `references/glue-guardrails.md`,但该文件未包含在 ZIP 包中
改进建议:请确保所有被引用的文件(如 glue-guardrails.md)随 Skill 一起打包,或移除引用
亮点
- 所有 AWS CLI 命令语法正确,参数占位符规范
- 工具来源均为官方 AWS API,具备高可信度
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- github.com
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。