[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A8QCW1HCW99DCESXGZ82G1":3,"skill-same:01M7A8QCW1HCW99DCESXGZ82G1":149},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":45,"commitSha":46,"skillDirectory":47,"forksCount":48,"repositoryHtmlUrl":49,"repositoryHomepageUrl":6,"ownerHtmlUrl":50,"ownerBlogUrl":6,"ownerDescription":51,"updatedAt":52,"install":53,"resources":66},"01M7A8QCW1HCW99DCESXGZ82G1","glue-job-failure-troubleshooter",null,"Diagnoses AWS Glue job failures through a fifteen-layer diagnostic tree: ETL script errors (PySpark\u002FScala exceptions), DPU allocation insufficient (executor YARN OOM, max capacity reached), Python shell vs Spark shell errors, Data Catalog table not found, S3 source data path wrong, partition not loaded (MSCK REPAIR missing), bookmark errors (state corrupted or partition-key mismatch), JDBC connection errors (Glue connection \u002F security group to RDS\u002FRedshift), dynamic frame vs RDD performance, CloudWatch Logs not enabled, job timeout (default 2.5h), worker type mismatch (G.1X vs G.2X vs G.025X), job metrics analysis, and Spark UI DAG inspection. Walks symptoms to a verified root cause with evidence-backed read-only probes; emits ROOT_CAUSE_IDENTIFIED or INSUFFICIENT_DATA.","jhkchan\u002Faws-agent-skills","jhkchan","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1083902?v=4","01M7A2SVQYP9GQTPTDXP5JKYQ4","Jacky Chan","01M7A2SVS117YWCTZABB75HZR1",4,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fglue-job-failure-troubleshooter\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: glue-job-failure-troubleshooter\ndescription: 'Diagnoses AWS Glue job failures through a fifteen-layer diagnostic tree: ETL script errors (PySpark\u002FScala exceptions), DPU allocation insufficient (executor YARN OOM, max capacity reached), Python shell vs Spark shell errors, Data Catalog table not found, S3 source data path wrong, partition not loaded (MSCK REPAIR missing), bookmark errors (state corrupted or partition-key mismatch), JDBC connection errors (Glue connection \u002F security group to RDS\u002FRedshift), dynamic frame vs RDD performance, CloudWatch Logs not enabled, job timeout (default 2.5h), worker type mismatch (G.1X vs G.2X vs G.025X), job metrics analysis, and Spark UI DAG inspection. Walks symptoms to a verified root cause with evidence-backed read-only probes; emits ROOT_CAUSE_IDENTIFIED or INSUFFICIENT_DATA.'\nlicense: Apache-2.0\ncompatibility: Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). Offline symptom classification works from pasted error messages and job configuration. Live-account diagnosis uses aws glue get-job, get-job-run, get-job-runs, get-security-configuration, batch-get-jobs, aws logs get-log-events \u002F filter-log-events, aws glue get-table \u002F get-partitions, aws glue get-connection, aws ec2 describe-security-groups, and aws s3 ls \u002F head-object (AWS CLI v2, SSO or key-based credentials).\nmetadata:\n  domain: aws-cloudops\n  complexity: high\n  requires_llm: 'true'\n  phase: '2'\n  supports_pipeline: 'true'\n  entry_point: 'false'\n  family: Analytics\n  task_type: troubleshoot\n  skill_class: capability\n  lifecycle_status: active\n  verdict_shape: ROOT_CAUSE_IDENTIFIED | INSUFFICIENT_DATA\n  when_to_use: Diagnosing an AWS Glue job failure (job run transitions to FAILED, executor YARN kills container for OOM, Data Catalog table not found, S3 source path returns no data, partitions not loaded after MSCK REPAIR, job bookmark reprocessing all data on every run, JDBC connection to RDS\u002FRedshift times out, job exceeds the 2.5h default timeout, G.025X worker too weak for the Spark workload, or CloudWatch Logs are empty). Use when the symptom is \"the Glue job failed\" and the cause may be DPU allocation, worker type, bookmark state, JDBC connection, partition loading, script error, or worker-type mismatch.\n  when_not_to_use: Provisioning a new Glue job (use glue-crawler-deployer for crawlers or the job deployer), Glue Data Quality rule evaluation (use the Data Quality skill), Glue Studio notebook interactive development (use the notebook tooling), or Athena query failures (use athena-query-optimizer). This skill diagnoses job-run failures at execution time; it does not provision or tune steady-state ETL pipelines.\n  activation_triggers: Glue job FAILED, Glue executor YARN killed container, Glue out of memory, Glue container killed by YARN, Glue Data Catalog table not found, Glue S3 source path wrong, Glue partition not loaded, MSCK REPAIR TABLE, Glue job bookmark corrupted, Glue bookmark reprocessing all data, Glue JDBC connection error, Glue cannot connect to RDS, Glue cannot connect to Redshift, Glue job timeout, Glue worker type wrong, Glue G.025X too weak, Glue CloudWatch Logs empty, troubleshoot Glue job failure\n  invocation_schema: 'Input: either (a) a symptom description (\"Glue job failed with executor OOM\", \"bookmark reprocesses all data every run\", \"JDBC connection times out\"), optionally paired with the job configuration (JobName, worker type, DPU count, script path), OR (b) a JobName plus JobRunId and the CloudWatch Logs error for live-account diagnosis. Output: a deterministic TARGET\u002FVERDICT\u002FREASON\u002FLAYER\u002FEVIDENCE\u002FREMEDIATION block where VERDICT ∈ {ROOT_CAUSE_IDENTIFIED, INSUFFICIENT_DATA} and LAYER ∈ {GLUE_ETL_SCRIPT_ERROR, GLUE_DPU_INSUFFICIENT, GLUE_PYTHON_SHELL_ERROR, GLUE_SPARK_SHELL_ERROR, GLUE_DATA_CATALOG_TABLE_NOT_FOUND, GLUE_S3_SOURCE_PATH_WRONG, GLUE_PARTITION_NOT_LOADED, GLUE_BOOKMARK_CORRUPTED, GLUE_JDBC_CONNECTION_ERROR, GLUE_DYNAMIC_FRAME_PERFORMANCE, GLUE_CLOUDWATCH_LOGS_DISABLED, GLUE_JOB_TIMEOUT, GLUE_WORKER_TYPE_WRONG, GLUE_JOB_METRICS_ANALYSIS, GLUE_SPARK_UI_DAG, UNKNOWN}.'\n  invocation_example: '# Minimal valid input (offline symptom classification):\n\n    Symptom: \"Glue job etl-daily-orders failed at 03:17 UTC. CloudWatch\n\n    Logs show ''Container killed by YARN for exceeding memory limits''.\n\n    The job runs on G.1X with 10 workers. The same job succeeded last\n\n    week on a smaller dataset.\"\n\n    JobName: etl-daily-orders\n\n    JobRunId: jr_abc123\n\n    WorkerType: G.1X\n\n    NumberOfWorkers: 10\n\n    Timeout: 150 (minutes, default 2.5h)\n\n    GlueVersion: glue-4.0\n\n    Last successful run: 2026-08-03 (dataset was 50 GB)\n\n    Failed run dataset: 250 GB (5x growth)'\n  version: 0.1.0\n  author: Jacky Chan — AWS Community Builder\n  keywords: AWS Glue, Glue job, PySpark, Scala, DPU, executor, YARN, out of memory, Python shell, Spark shell, Data Catalog, table not found, S3 source path, partition, MSCK REPAIR, job bookmark, bookmark corrupted, JDBC connection, RDS, Redshift, security group, dynamic frame, CloudWatch Logs, job timeout, worker type, G.1X, G.2X, G.025X, job metrics, Spark UI, troubleshooting\n  tags: glue, analytics, troubleshooting, etl, spark, job-failure, dpu, bookmark, jdbc, worker-type\n---\n\n# Glue Job Failure Troubleshooter\n\n## Quick start\n\n- **Symptom → layer map (first plausible match drives the first probe):**\n  `Container killed by YARN for exceeding memory limits` →\n  GLUE_DPU_INSUFFICIENT \u002F GLUE_WORKER_TYPE_WRONG; `Table not found`\n  or `AnalysisException: Table or view not found` →\n  GLUE_DATA_CATALOG_TABLE_NOT_FOUND; `Path does not exist` on S3\n  source → GLUE_S3_SOURCE_PATH_WRONG; table exists but returns 0 rows\n  → GLUE_PARTITION_NOT_LOADED (MSCK REPAIR missing); bookmark\n  reprocesses all data on every run → GLUE_BOOKMARK_CORRUPTED; JDBC\n  `Connection refused` or `Connection timed out` →\n  GLUE_JDBC_CONNECTION_ERROR; job run exceeds Timeout →\n  GLUE_JOB_TIMEOUT; `CloudWatch Logs` empty for the job run →\n  GLUE_CLOUDWATCH_LOGS_DISABLED.\n- **Always verify with a read-only probe, never guess.** Each layer\n  has a single command that proves or disproves it. A\n  ROOT_CAUSE_IDENTIFIED verdict requires positive evidence — a\n  failing probe that matches the symptom — not a process of\n  elimination.\n- **Worker type determines executors per worker.** G.1X gives 1\n  executor per worker (1 vCPU \u002F 10 GB heap). G.2X gives 2 executors\n  per worker (2 vCPU \u002F 20 GB heap) and is Spark-optimised — the\n  same DPU count on G.2X doubles the executor parallelism. G.025X\n  (micro) is for Python shell jobs only; running a Spark job on\n  G.025X produces chronic OOM.\n- **Bookmark state must match the partition keys.** Glue bookmarking\n  tracks the last-processed partition value. If the job script's\n  `partition_keys` argument changes, or the source table's partition\n  columns change, the bookmark state no longer matches and the job\n  reprocesses all data on every run. A bookmark reset is required\n  after any partition-key schema change.\n- **JDBC connections need a Glue connection AND a security group.**\n  The Glue connection object holds the JDBC URL, the VPC, subnet, and\n  security group. The security group must allow inbound from the Glue\n  job's ENI on the database port. Operators who \"created the JDBC\n  connection\" but never added the inbound rule to the RDS security\n  group produce a silent `Connection timed out`.\n\n## Mindset\n\nA Glue job failure is almost always a resource, configuration, or\ndata-catalog problem wearing a \"Spark is broken\" costume. The ETL\nscript is fine in the majority of cases; the broken thing is DPU\nallocation, worker type, bookmark state, JDBC networking, partition\nloading, or CloudWatch Logs enablement. Treat the script as innocent\nuntil the DPU, worker type, bookmark, connection, and catalog layers\nare proven clean.\n\n## Philosophy\n\nThe four senior-engineer behaviours moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — load on demand.\n\n## Quick reference — symptom triage table\n\n| Symptom phrase \u002F error | Most likely layer | First probe |\n|---|---|---|\n| `Container killed by YARN for exceeding memory limits` | GLUE_DPU_INSUFFICIENT \u002F GLUE_WORKER_TYPE_WRONG | `get-job` (WorkerType, NumberOfWorkers), CloudWatch Logs executor memory |\n| `AnalysisException: Table or view not found`, `Table not found` | GLUE_DATA_CATALOG_TABLE_NOT_FOUND | `aws glue get-table --database \u003Cdb> --name \u003Ctable>` |\n| `Path does not exist: s3:\u002F\u002F...`, `AmazonS3Exception: NoSuchKey` | GLUE_S3_SOURCE_PATH_WRONG | `aws s3 ls \u003Cpath>`, `aws glue get-table` (StorageDescriptor.Location) |\n| Table exists but `df.count()` returns 0 | GLUE_PARTITION_NOT_LOADED | `aws glue get-partitions`, run `MSCK REPAIR TABLE` |\n| Job succeeds but reprocesses all data every run | GLUE_BOOKMARK_CORRUPTED | `get-job-run` (Arguments `--job-bookmark-option`), bookmark state |\n| `Connection refused`, `Connection timed out` to JDBC source | GLUE_JDBC_CONNECTION_ERROR | `aws glue get-connection`, security group rules on both sides |\n| Job run transitions to TIMEOUT after 150 minutes | GLUE_JOB_TIMEOUT | `get-job` (Timeout), CloudWatch Logs last activity |\n| CloudWatch Logs for the job run are empty | GLUE_CLOUDWATCH_LOGS_DISABLED | `get-job` (SecurityConfiguration, CloudWatch encryption), logs group |\n| `py4j.Py4JException` or `PythonException` | GLUE_PYTHON_SHELL_ERROR | CloudWatch Logs Python traceback |\n| Job runs but is very slow; `glue_context` overhead | GLUE_DYNAMIC_FRAME_PERFORMANCE | Job metrics, DynamicFrame vs RDD usage |\n| None of the above, weird runtime error | UNKNOWN | CloudWatch Logs full traceback, Spark UI DAG |\n\n## Pre-flight: job state and gather-info gate\n\nBefore symptom-specific probes, gather the canonical job configuration\nand short-circuit on job states that mimic execution failures.\n\n### Pre-flight commands\n\nPre-flight CLI (get-job, get-job-run, get-job-runs, CloudWatch Logs filter, security configuration) moved to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — load on demand.\n\n### Job-run-state short-circuit\n\n| `JobRunState` | Effect on diagnosis |\n|---|---|\n| `SUCCEEDED` | The job completed; if the symptom is data-correctness, the failure is downstream, not in the job run. |\n| `RUNNING` \u002F `STARTING` \u002F `STOPPING` | The job is in flight. Memory\u002Ftimeout symptoms are not yet final; wait for `FAILED` or `TIMEOUT`. |\n| `FAILED` | The job encountered an error. `ErrorMessage` on the run identifies the category (YARN OOM, script exception, connection error). |\n| `TIMEOUT` | The job exceeded the configured `Timeout` (default 150 minutes = 2.5h). This is GLUE_JOB_TIMEOUT unless the job was genuinely making progress and the timeout is too low. |\n| `STOPPED` | An operator cancelled the run. Not a failure. |\n| `RUNNING` but no CloudWatch Logs | CloudWatch Logs encryption or IAM permission issue — the job is running but logs are not delivered. |\n\n### Malformed-input fallback\n\nIf the input is missing JobName, JobRunId, or a symptom description,\nemit `VERDICT: INSUFFICIENT_DATA` with `LAYER: UNKNOWN`, list the\nmissing fields, and re-prompt for: (1) the JobName, (2) the JobRunId,\n(3) the error message from CloudWatch Logs or the run's\n`ErrorMessage`, and (4) the job's WorkerType and NumberOfWorkers.\n\n## Process — Diagnostic decision tree (apply in symptom order)\n\nPick the entry point based on the symptom. Each layer ends with\neither a positive root-cause confirmation or a pass that moves to the\nnext layer. **Never emit ROOT_CAUSE_IDENTIFIED without a failing probe\nthat matches the symptom.**\n\n### Step 0: Operational gotchas that change diagnosis\n\nOperational gotchas moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — load on demand.\n\n### Step 1: Symptom entry\n\n| Symptom | Branch |\n|---|---|\n| `Container killed by YARN`, executor OOM | Step 2 — DPU \u002F worker type |\n| `Table or view not found`, `Table not found` | Step 3 — Data Catalog |\n| `Path does not exist`, S3 source returns no data | Step 4 — S3 path |\n| Table exists but `df.count()` is 0 | Step 5 — Partitions |\n| Job reprocesses all data every run | Step 6 — Bookmark |\n| `Connection timed out`, `Connection refused` to JDBC | Step 7 — JDBC |\n| Job transitions to `TIMEOUT` | Step 8 — Timeout |\n| CloudWatch Logs empty for the job run | Step 9 — Logs |\n| Python traceback, `py4j` exception | Step 10 — Python shell |\n| Job slow, DynamicFrame overhead | Step 11 — Performance |\n| None of the above | Step 12 — UNKNOWN |\n\n### Step 2: DPU allocation \u002F worker type\n\nStep 2 probes (worker-type table, worker-count check, CloudWatch memory metrics) moved to [references\u002Fglue-worker-type-and-dpu-reference.md](references\u002Fglue-worker-type-and-dpu-reference.md) — load on demand.\n\n### Step 3: Data Catalog table not found\n\nSymptom: `AnalysisException: Table or view not found: '\u003Cdatabase>.\u003Ctable>'`\nor `Table \u003Cdatabase>.\u003Ctable> not found`.\n\nProbe: [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — Step 3 get-table.\n\nIf `EntityNotFoundException`, the table does not exist in the Data\nCatalog. **ROOT_CAUSE_IDENTIFIED** with\n`LAYER: GLUE_DATA_CATALOG_TABLE_NOT_FOUND`. Fix: create the table (run\na crawler, or create it manually with `create-table`), or verify the\ndatabase and table names in the job script.\n\nIf the table exists, check the database:\n\nProbe: [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — Step 3 get-database.\n\nThe Data Catalog database must exist and the job's IAM role must have\n`glue:GetTable` on the table ARN.\n\n### Step 4: S3 source path wrong\n\nSymptom: `Path does not exist: s3:\u002F\u002F\u003Cbucket>\u002F\u003Cprefix>` or the source\nreturns no data despite the table existing.\n\nProbe: [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — Step 4 StorageDescriptor.Location and s3 ls.\n\nIf the S3 path is empty or does not exist, **ROOT_CAUSE_IDENTIFIED**\nwith `LAYER: GLUE_S3_SOURCE_PATH_WRONG`. Common causes: typo in the\nbucket or prefix, cross-account S3 access without bucket policy, or\nthe data was written to a different prefix than the catalog expects.\n\nAlso check if the job script hardcodes the S3 path:\n\nHardcoded-path script example (Step 4) moved to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — load on demand.\n\nIf the hardcoded path differs from the Data Catalog location, that is\nthe error source.\n\n### Step 5: Partitions not loaded (MSCK REPAIR)\n\nSymptom: the table exists, the S3 path has data, but\n`dynamicframe.count()` returns 0.\n\nProbe: [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — Step 5 get-partitions count.\n\nIf 0 partitions but S3 has partitioned data\n(`s3:\u002F\u002Fbucket\u002Fdata\u002Fyear=2026\u002Fmonth=08\u002F`), the partitions are not\nregistered in the Data Catalog. **ROOT_CAUSE_IDENTIFIED** with\n`LAYER: GLUE_PARTITION_NOT_LOADED`. Fix:\n\nFix commands (MSCK REPAIR via Athena, start-crawler — Step 5) moved to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — load on demand.\n\n### Step 6: Bookmark corrupted \u002F partition-key mismatch\n\nSymptom: the job succeeds but reprocesses all data on every run\ndespite `--job-bookmark-option: job-bookmark-enable`.\n\nBookmark option probes (Step 6) moved to [references\u002Fglue-bookmark-and-jdbc-reference.md](references\u002Fglue-bookmark-and-jdbc-reference.md) — load on demand.\n\nIf `--job-bookmark-option` is `job-bookmark-disable`, bookmarking is\noff — the job reprocesses by design. **ROOT_CAUSE_IDENTIFIED** with\n`LAYER: GLUE_BOOKMARK_CORRUPTED` (config issue).\n\nIf `--job-bookmark-option` is `job-bookmark-enable` but the job still\nreprocesses, the bookmark state's partition keys do not match the\ncurrent job script's `partition_keys` argument. This happens after a\nscript change that altered the `partition_keys` in\n`create_dynamic_frame.from_catalog`, or after a table schema change\nthat altered the partition columns.\n\nFix: reset the bookmark state:\n\nBookmark reset command (Step 6 fix) moved to [references\u002Fglue-bookmark-and-jdbc-reference.md](references\u002Fglue-bookmark-and-jdbc-reference.md) — load on demand.\n\nThen run the job again with `--job-bookmark-option: job-bookmark-enable`.\nThe first run after reset reprocesses all data (expected); subsequent\nruns should process only new partitions.\n\n### Step 7: JDBC connection error\n\nStep 7 probes (get-connection, SG checks, route table) and branches 7a\u002F7b\u002F7c moved to [references\u002Fglue-bookmark-and-jdbc-reference.md](references\u002Fglue-bookmark-and-jdbc-reference.md) — load on demand.\n\n### Step 8: Job timeout\n\nSymptom: the job run transitions to `TIMEOUT` after the configured\n`Timeout` value (default 150 minutes = 2.5 hours).\n\nProbe: [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — Step 8 Timeout\u002FExecutionTime.\n\nIf `ExecutionTime` is close to `Timeout` and the CloudWatch Logs show\nthe job was still making progress (not stuck), the timeout is too low\nfor the workload. **ROOT_CAUSE_IDENTIFIED** with\n`LAYER: GLUE_JOB_TIMEOUT`. Fix: raise the `Timeout` value.\n\nIf the logs show the job was stuck (no log activity for the last 30\nminutes before timeout), the root cause is upstream (a hung JDBC\nread, a stuck shuffle) — the timeout is a symptom, not the cause.\nInvestigate the last log activity before the timeout.\n\n### Step 9: CloudWatch Logs disabled\n\nSymptom: the job ran but CloudWatch Logs for the run are empty.\n\nProbe: [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — Step 9 SecurityConfiguration and IAM role check.\n\nIf the role does not have `AWSGlueServiceRole` (or equivalent inline\npermissions with `logs:CreateLogStream` and `logs:PutLogEvents`),\n**ROOT_CAUSE_IDENTIFIED** with\n`LAYER: GLUE_CLOUDWATCH_LOGS_DISABLED`. Fix: attach the\n`AWSGlueServiceRole` managed policy or add the log permissions inline.\n\nIf a SecurityConfiguration with CloudWatch KMS encryption is set,\nverify the KMS key is enabled and the role has `kms:Decrypt` on it.\n\n### Step 10: Python shell error\n\nSymptom: `py4j.Py4JException`, `PythonException`, or a Python\ntraceback in CloudWatch Logs.\n\nProbe: [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — Step 10 Traceback\u002Fpy4j log filter.\n\nIf the job's `Command.Name` is `pythonshell` and the script uses\n`SparkContext.getOrCreate()` or `glue_context`,\n**ROOT_CAUSE_IDENTIFIED** with `LAYER: GLUE_PYTHON_SHELL_ERROR`.\nPython shell jobs do not have a Spark context. Fix: change\n`Command.Name` to `glueetl` if Spark is needed.\n\nIf the job's `Command.Name` is `glueetl` and the error is a Python\ntraceback (not a JVM exception), the script has a Python-level bug.\n**ROOT_CAUSE_IDENTIFIED** with `LAYER: GLUE_ETL_SCRIPT_ERROR`. Fix:\naddress the Python error in the script.\n\n### Step 11: Performance — DynamicFrame vs RDD\n\nSymptom: the job runs but is very slow; execution time is dominated\nby `glue_context` overhead rather than Spark transformations.\n\nProbe: [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — Step 11 --enable-metrics check.\n\nIf `--enable-metrics` is not set, enable it and re-run. Then inspect\nthe job metrics dashboard for executor skew, spill, and GC overhead.\n\nCommon DynamicFrame performance issues:\n- Using `dynamicframe.toDF()` too late — the DynamicFrame serialises\n  on every transformation. Convert to DataFrame early.\n- Using `dynamicframe.show()` for debugging on large frames — it\n  materialises the entire frame.\n- Using `ApplyMapping` with thousands of columns — it is O(n^2) on\n  the column count.\n\nIf the job uses DynamicFrame operations where native Spark DataFrame\noperations would work, **ROOT_CAUSE_IDENTIFIED** with\n`LAYER: GLUE_DYNAMIC_FRAME_PERFORMANCE`. Fix: convert to DataFrame\nearly and use native Spark APIs.\n\n### Step 12: UNKNOWN \u002F INSUFFICIENT_DATA\n\n- **INSUFFICIENT_DATA** — A specific probe requires operator input\n  (the full CloudWatch Logs traceback, the Glue connection name, the\n  Data Catalog database name). List the missing pieces and the next\n  probe to run once the info is available.\n- **UNKNOWN** — All probes passed and the symptom persists. Escalate\n  to AWS Support with the JobName, JobRunId, the full CloudWatch Logs\n  for the run, and the Spark UI DAG (if enabled).\n\n## Output format\n\n```text\nTARGET: \u003Cjob-name (JobRunId)>\nVERDICT: ROOT_CAUSE_IDENTIFIED | INSUFFICIENT_DATA\nREASON: \u003C1-2 sentences naming the failed layer and the failing probe>\nLAYER: \u003CGLUE_ETL_SCRIPT_ERROR | GLUE_DPU_INSUFFICIENT |\n        GLUE_PYTHON_SHELL_ERROR | GLUE_SPARK_SHELL_ERROR |\n        GLUE_DATA_CATALOG_TABLE_NOT_FOUND | GLUE_S3_SOURCE_PATH_WRONG |\n        GLUE_PARTITION_NOT_LOADED | GLUE_BOOKMARK_CORRUPTED |\n        GLUE_JDBC_CONNECTION_ERROR | GLUE_DYNAMIC_FRAME_PERFORMANCE |\n        GLUE_CLOUDWATCH_LOGS_DISABLED | GLUE_JOB_TIMEOUT |\n        GLUE_WORKER_TYPE_WRONG | GLUE_JOB_METRICS_ANALYSIS |\n        GLUE_SPARK_UI_DAG | UNKNOWN>\nEVIDENCE:\n  - \u003Cobserved symptom — error string or observed behaviour>\n  - \u003Cfailing probe — command and its output that confirms the cause>\n  - \u003Cpassing probes — layers ruled out>\nREMEDIATION:\n  1. \u003Cspecific action with CLI command>\n  2. \u003Cverification command after the fix>\nCONFIRM: Before executing any state-changing CLI, emit and await operator\n  approval: \"CONFIRM: About to \u003Caction> on \u003Cjob-name> in \u003Cregion>. Proceed?\n  (yes\u002Fno)\"\n```\n\n### Worked example — DPU insufficient, G.1X → G.2X\n\n```text\nTARGET: etl-daily-orders (JobRunId: jr_abc123)\nVERDICT: ROOT_CAUSE_IDENTIFIED\nREASON: The job runs on G.1X with 10 workers (10 executors, 10 GB heap\n  each). The input dataset grew from 50 GB to 250 GB (5x) since the\n  last successful run. CloudWatch Logs show \"Container killed by YARN\n  for exceeding memory limits\" on 3 executors. The same script\n  succeeded on 50 GB; the failure is memory sizing, not a script bug.\n  G.2X would double the executor count to 20 (2 per worker) and halve\n  the per-executor data volume (Step 2a\u002F2b).\nLAYER: GLUE_DPU_INSUFFICIENT\nEVIDENCE:\n  - Symptom: job transitions to FAILED after 23 minutes. CloudWatch\n    Logs contain \"Container killed by YARN for exceeding memory\n    limits. Container [pid=1234] was killed.\" on 3 executors.\n  - Probe: aws glue get-job returns WorkerType=G.1X,\n    NumberOfWorkers=10, GlueVersion=glue-4.0.\n  - Probe: aws cloudwatch get-metric-statistics on\n    glue.executor.memory.maxUsed shows Maximum 9.7 GB (out of 10 GB\n    heap) in the 5 minutes before the kill.\n  - Passing: the job script has not changed since the last successful\n    run; the Data Catalog table exists; partitions are loaded; no JDBC\n    connection in play.\nREMEDIATION:\n  1. Switch the worker type to G.2X (doubles executor parallelism):\n     aws glue update-job --job-name etl-daily-orders \\\n       --job-update '{\"WorkerType\":\"G.2X\",\"NumberOfWorkers\":10}'\n  2. Optionally increase NumberOfWorkers to 15 if G.2X alone is not\n     enough.\n  3. Re-run the job and monitor glue.executor.memory.maxUsed; it\n     should peak below 5 GB per executor (half the data per executor).\nCONFIRM: Before updating the job, emit and await:\n  \"CONFIRM: About to switch etl-daily-orders from G.1X to G.2X with\n   10 workers. Proceed? (yes\u002Fno)\"\n```\n\n### Worked example — Bookmark partition-key mismatch\n\nFull bookmark partition-key-mismatch example moved to [references\u002Fworked-examples.md](references\u002Fworked-examples.md) — load on demand.\n\n## Anti-Patterns — NEVER\n\n- NEVER declare ROOT_CAUSE_IDENTIFIED without a failing probe that\n  matches the symptom.\n- NEVER assume a `Container killed by YARN` error is a script bug. It\n  is memory sizing — fix with more DPUs, G.2X, or repartitioning.\n- NEVER run a Spark job on G.025X. G.025X is for Python shell only.\n- NEVER assume \"bookmarking is enabled\" means only new data is\n  processed. Bookmark state is tied to partition keys. Reset after\n  any partition-key change.\n- NEVER assume a Glue JDBC connection alone is sufficient. The\n  database's SG must allow inbound from the Glue connection's SG.\n- NEVER assume the Data Catalog knows about new S3 partitions\n  automatically. Run `MSCK REPAIR TABLE` or a crawler after external\n  data lands.\n- NEVER assume CloudWatch Logs are on by default. The job's IAM role\n  needs `logs:CreateLogStream` and `logs:PutLogEvents`.\n- NEVER use DynamicFrame where native Spark DataFrame would work —\n  DynamicFrame adds serialisation overhead. Convert early.\n- NEVER keep the default 2.5h timeout for known long-running jobs.\n  NEVER diagnose a `TIMEOUT` without checking the last log activity\n  (stuck vs. making progress).\n- NEVER enable Spark UI without an S3 log path\n  (`--spark-event-logs-path`).\n- NEVER perform state-changing operations as diagnostic probes. Every\n  probe is read-only. State changes are remediations, gated behind\n  CONFIRM.\n\n## Pre-flight safety checks (run before any state-changing CLI)\n\n- **MANDATORY CONFIRMATION GATE.** Before `update-job`,\n  `reset-job-bookmark`, `start-job-run`, `stop-job-run`, or\n  `create-connection`, emit and await operator approval.\n- **Read-only first.** Every probe is read-only.\n- **Updating a job** (`update-job`) is safe for config-only changes\n  (WorkerType, NumberOfWorkers, Timeout). The next run uses the new\n  config.\n- **Resetting a bookmark** causes the next run to reprocess all data.\n  Confirm before resetting on large datasets.\n- **Starting a job run** consumes DPUs (G.2X = 2x G.1X cost). Confirm\n  the budget impact.\n- **Bulk remediation batch limit.** Batch into groups of at most 5\n  jobs, emit a single CONFIRM per batch, verify between batches.\n\n## Remediation guidance (command index)\n\n- **GLUE_DPU_INSUFFICIENT**: `update-job` — raise `NumberOfWorkers`\n- **GLUE_WORKER_TYPE_WRONG**: `update-job` — switch `WorkerType` to G.2X (or from G.025X to G.1X)\n- **GLUE_DATA_CATALOG_TABLE_NOT_FOUND**: run a crawler or `create-table`\n- **GLUE_S3_SOURCE_PATH_WRONG**: fix the path in the script or table `StorageDescriptor.Location`\n- **GLUE_PARTITION_NOT_LOADED**: `MSCK REPAIR TABLE` (Athena) or `start-crawler`\n- **GLUE_BOOKMARK_CORRUPTED**: `reset-job-bookmark` then re-run with `--job-bookmark-option=job-bookmark-enable`\n- **GLUE_JDBC_CONNECTION_ERROR**: `create-connection` + add inbound SG rule on the database\n- **GLUE_JOB_TIMEOUT**: `update-job` — raise `Timeout`\n- **GLUE_CLOUDWATCH_LOGS_DISABLED**: attach `AWSGlueServiceRole` or add `logs:*` permissions\n- **GLUE_PYTHON_SHELL_ERROR**: change `Command.Name` to `glueetl` for Spark\n- **GLUE_DYNAMIC_FRAME_PERFORMANCE**: convert to DataFrame early, use native Spark APIs\n\nSee `references\u002Fglue-worker-type-and-dpu-reference.md` for the full\nworker-type \u002F DPU mapping and `references\u002Fglue-bookmark-and-jdbc-reference.md`\nfor bookmark and JDBC connection detail.\n\n## References (load on demand)\n\n- [references\u002Fworked-examples.md](references\u002Fworked-examples.md) — secondary worked examples (bookmark partition-key mismatch).\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — pre-flight CLI and per-step read-only probe commands (Steps 3-5, 8-11).\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — philosophy deep dive and Step 0 operational gotchas.\n- [references\u002Fglue-worker-type-and-dpu-reference.md](references\u002Fglue-worker-type-and-dpu-reference.md) — Step 2 worker-type\u002FDPU probes and branch logic.\n- [references\u002Fglue-bookmark-and-jdbc-reference.md](references\u002Fglue-bookmark-and-jdbc-reference.md) — Step 6 bookmark probes and Step 7 JDBC probes\u002Fbranches.\n\n## Domain\n\nAWS CloudOps \u002F Glue Analytics, ETL Job Diagnostics, DPU Allocation,\nWorker Type Sizing, Data Catalog Partition Management, Job Bookmark\nState, and JDBC Connectivity.\n\n## AWS documentation\n\n- **AWS Glue Developer Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fglue\u002Flatest\u002Fdg\u002F\n- **Glue job runs** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fglue\u002Flatest\u002Fdg\u002Fmonitor-debug-operations.html\n- **Glue job bookmarks** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fglue\u002Flatest\u002Fdg\u002Fmonitor-continuations.html\n- **Glue connections (JDBC)** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fglue\u002Flatest\u002Fdg\u002Fpopulate-add-connection.html\n- **Glue worker types** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fglue\u002Flatest\u002Fdg\u002Faws-glue-programming-etl-glue-arguments.html\n- **Glue security configurations** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fglue\u002Flatest\u002Fdg\u002Fconsole-security-configurations.html\n- **Glue job metrics** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fglue\u002Flatest\u002Fdg\u002Fmonitor-profile-metrics.html\n- **Glue Spark UI** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fglue\u002Flatest\u002Fdg\u002Fmonitor-spark-ui.html\n- **MSCK REPAIR TABLE** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fathena\u002Flatest\u002Fug\u002Fmsck-repair-table.html\n- **AWS Health** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fhealth\u002Flatest\u002Fug\u002F\n","# Glue Job Failure Troubleshooter\n\n## Quick start\n\n- **Symptom → layer map (first plausible match drives the first probe):**\n  `Container killed by YARN for exceeding memory limits` →\n  GLUE_DPU_INSUFFICIENT \u002F GLUE_WORKER_TYPE_WRONG; `Table not found`\n  or `AnalysisException: Table or view not found` →\n  GLUE_DATA_CATALOG_TABLE_NOT_FOUND; `Path does not exist` on S3\n  source → GLUE_S3_SOURCE_PATH_WRONG; table exists but returns 0 rows\n  → GLUE_PARTITION_NOT_LOADED (MSCK REPAIR missing); bookmark\n  reprocesses all data on every run → GLUE_BOOKMARK_CORRUPTED; JDBC\n  `Connection refused` or `Connection timed out` →\n  GLUE_JDBC_CONNECTION_ERROR; job run exceeds Timeout →\n  GLUE_JOB_TIMEOUT; `CloudWatch Logs` empty for the job run →\n  GLUE_CLOUDWATCH_LOGS_DISABLED.\n- **Always verify with a read-only probe, never guess.** Each layer\n  has a single command that proves or disproves it. A\n  ROOT_CAUSE_IDENTIFIED verdict requires positive evidence — a\n  failing probe that matches the symptom — not a process of\n  elimination.\n- **Worker type determines executors per worker.** G.1X gives 1\n  executor per worker (1 vCPU \u002F 10 GB heap). G.2X gives 2 executors\n  per worker (2 vCPU \u002F 20 GB heap) and is Spark-optimised — the\n  same DPU count on G.2X doubles the executor parallelism. G.025X\n  (micro) is for Python shell jobs only; running a Spark job on\n  G.025X produces chronic OOM.\n- **Bookmark state must match the partition keys.** Glue bookmarking\n  tracks the last-processed partition value. If the job script's\n  `partition_keys` argument changes, or the source table's partition\n  columns change, the bookmark state no longer matches and the job\n  reprocesses all data on every run. A bookmark reset is required\n  after any partition-key schema change.\n- **JDBC connections need a Glue connection AND a security group.**\n  The Glue connection object holds the JDBC URL, the VPC, subnet, and\n  security group. The security group must allow inbound from the Glue\n  job's ENI on the database port. Operators who \"created the JDBC\n  connection\" but never added the inbound rule to the RDS security\n  group produce a silent `Connection timed out`.\n\n## Mindset\n\nA Glue job failure is almost always a resource, configuration, or\ndata-catalog problem wearing a \"Spark is broken\" costume. The ETL\nscript is fine in the majority of cases; the broken thing is DPU\nallocation, worker type, bookmark state, JDBC networking, partition\nloading, or CloudWatch Logs enablement. Treat the script as innocent\nuntil the DPU, worker type, bookmark, connection, and catalog layers\nare proven clean.\n\n## Philosophy\n\nThe four senior-engineer behaviours moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — load on demand.\n\n## Quick reference — symptom triage table\n\n| Symptom phrase \u002F error | Most likely layer | First probe |\n|---|---|---|\n| `Container killed by YARN for exceeding memory limits` | GLUE_DPU_INSUFFICIENT \u002F GLUE_WORKER_TYPE_WRONG | `get-job` (WorkerType, NumberOfWorkers), CloudWatch Logs executor memory |\n| `AnalysisException: Table or view not found`, `Table not found` | GLUE_DATA_CATALOG_TABLE_NOT_FOUND | `aws glue get-table --database \u003Cdb> --name \u003Ctable>` |\n| `Path does not exist: s3:\u002F\u002F...`, `AmazonS3Exception: NoSuchKey` | GLUE_S3_SOURCE_PATH_WRONG | `aws s3 ls \u003Cpath>`, `aws glue get-table` (StorageDescriptor.Location) |\n| Table exists but `df.count()` returns 0 | GLUE_PARTITION_NOT_LOADED | `aws glue get-partitions`, run `MSCK REPAIR TABLE` |\n| Job succeeds but reprocesses all data every run | GLUE_BOOKMARK_CORRUPTED | `get-job-run` (Arguments `--job-bookmark-option`), bookmark state |\n| `Connection refused`, `Connection timed out` to JDBC source | GLUE_JDBC_CONNECTION_ERROR | `aws glue get-connection`, security group rules on both sides |\n| Job run transitions to TIMEOUT after 150 minutes | GLUE_JOB_TIMEOUT | `get-job` (Timeout), CloudWatch Logs last activity |\n| CloudWatch Logs for the job run are empty | GLUE_CLOUDWATCH_LOGS_DISABLED | `get-job` (SecurityConfiguration, CloudWatch encryption), logs group |\n| `py4j.Py4JException` or `PythonException` | GLUE_PYTHON_SHELL_ERROR | CloudWatch Logs Python traceback |\n| Job runs but is very slow; `glue_context` overhead | GLUE_DYNAMIC_FRAME_PERFORMANCE | Job metrics, DynamicFrame vs RDD usage |\n| None of the above, weird runtime error | UNKNOWN | CloudWatch Logs full traceback, Spark UI DAG |\n\n## Pre-flight: job state and gather-info gate\n\nBefore symptom-specific probes, gather the canonical job configuration\nand short-circuit on job states that mimic execution failures.\n\n### Pre-flight commands\n\nPre-flight CLI (get-job, get-job-run, get-job-runs, CloudWatch Logs filter, security configuration) moved to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — load on demand.\n\n### Job-run-state short-circuit\n\n| `JobRunState` | Effect on diagnosis |\n|---|---|\n| `SUCCEEDED` | The job completed; if the symptom is data-correctness, the failure is downstream, not in the job run. |\n| `RUNNING` \u002F `STARTING` \u002F `STOPPING` | The job is in flight. Memory\u002Ftimeout symptoms are not yet final; wait for `FAILED` or `TIMEOUT`. |\n| `FAILED` | The job encountered an error. `ErrorMessage` on the run identifies the category (YARN OOM, script exception, connection error). |\n| `TIMEOUT` | The job exceeded the configured `Timeout` (default 150 minutes = 2.5h). This is GLUE_JOB_TIMEOUT unless the job was genuinely making progress and the timeout is too low. |\n| `STOPPED` | An operator cancelled the run. Not a failure. |\n| `RUNNING` but no CloudWatch Logs | CloudWatch Logs encryption or IAM permission issue — the job is running but logs are not delivered. |\n\n### Malformed-input fallback\n\nIf the input is missing JobName, JobRunId, or a symptom description,\nemit `VERDICT: INSUFFICIENT_DATA` with `LAYER: UNKNOWN`, list the\nmissing fields, and re-prompt for: (1) the JobName, (2) the JobRunId,\n(3) the error message from CloudWatch Logs or the run's\n`ErrorMessage`, and (4) the job's WorkerType and NumberOfWorkers.\n\n## Process — Diagnostic decision tree (apply in symptom order)\n\nPick the entry point based on the symptom. Each layer ends with\neither a positive root-cause confirmation or a pass that moves to the\nnext layer. **Never emit ROOT_CAUSE_IDENTIFIED without a failing probe\nthat matches the symptom.**\n\n### Step 0: Operational gotchas that change diagnosis\n\nOperational gotchas moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — load on demand.\n\n### Step 1: Symptom entry\n\n| Symptom | Branch |\n|---|---|\n| `Container killed by YARN`, executor OOM | Step 2 — DPU \u002F worker type |\n| `Table or view not found`, `Table not found` | Step 3 — Data Catalog |\n| `Path does not exist`, S3 source returns no data | Step 4 — S3 path |\n| Table exists but `df.count()` is 0 | Step 5 — Partitions |\n| Job reprocesses all data every run | Step 6 — Bookmark |\n| `Connection timed out`, `Connection refused` to JDBC | Step 7 — JDBC |\n| Job transitions to `TIMEOUT` | Step 8 — Timeout |\n| CloudWatch Logs empty for the job run | Step 9 — Logs |\n| Python traceback, `py4j` exception | Step 10 — Python shell |\n| Job slow, DynamicFrame overhead | Step 11 — Performance |\n| None of the above | Step 12 — UNKNOWN |\n\n### Step 2: DPU allocation \u002F worker type\n\nStep 2 probes (worker-type table, worker-count check, CloudWatch memory metrics) moved to [references\u002Fglue-worker-type-and-dpu-reference.md](references\u002Fglue-worker-type-and-dpu-reference.md) — load on demand.\n\n### Step 3: Data Catalog table not found\n\nSymptom: `AnalysisException: Table or view not found: '\u003Cdatabase>.\u003Ctable>'`\nor `Table \u003Cdatabase>.\u003Ctable> not found`.\n\nProbe: [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — Step 3 get-table.\n\nIf `EntityNotFoundException`, the table does not exist in the Data\nCatalog. **ROOT_CAUSE_IDENTIFIED** with\n`LAYER: GLUE_DATA_CATALOG_TABLE_NOT_FOUND`. Fix: create the table (run\na crawler, or create it manually with `create-table`), or verify the\ndatabase and table names in the job script.\n\nIf the table exists, check the database:\n\nProbe: [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — Step 3 get-database.\n\nThe Data Catalog database must exist and the job's IAM role must have\n`glue:GetTable` on the table ARN.\n\n### Step 4: S3 source path wrong\n\nSymptom: `Path does not exist: s3:\u002F\u002F\u003Cbucket>\u002F\u003Cprefix>` or the source\nreturns no data despite the table existing.\n\nProbe: [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — Step 4 StorageDescriptor.Location and s3 ls.\n\nIf the S3 path is empty or does not exist, **ROOT_CAUSE_IDENTIFIED**\nwith `LAYER: GLUE_S3_SOURCE_PATH_WRONG`. Common causes: typo in the\nbucket or prefix, cross-account S3 access without bucket policy, or\nthe data was written to a different prefix than the catalog expects.\n\nAlso check if the job script hardcodes the S3 path:\n\nHardcoded-path script example (Step 4) moved to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — load on demand.\n\nIf the hardcoded path differs from the Data Catalog location, that is\nthe error source.\n\n### Step 5: Partitions not loaded (MSCK REPAIR)\n\nSymptom: the table exists, the S3 path has data, but\n`dynamicframe.count()` returns 0.\n\nProbe: [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — Step 5 get-partitions count.\n\nIf 0 partitions but S3 has partitioned data\n(`s3:\u002F\u002Fbucket\u002Fdata\u002Fyear=2026\u002Fmonth=08\u002F`), the partitions are not\nregistered in the Data Catalog. **ROOT_CAUSE_IDENTIFIED** with\n`LAYER: GLUE_PARTITION_NOT_LOADED`. Fix:\n\nFix commands (MSCK REPAIR via Athena, start-crawler — Step 5) moved to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — load on demand.\n\n### Step 6: Bookmark corrupted \u002F partition-key mismatch\n\nSymptom: the job succeeds but reprocesses all data on every run\ndespite `--job-bookmark-option: job-bookmark-enable`.\n\nBookmark option probes (Step 6) moved to [references\u002Fglue-bookmark-and-jdbc-reference.md](references\u002Fglue-bookmark-and-jdbc-reference.md) — load on demand.\n\nIf `--job-bookmark-option` is `job-bookmark-disable`, bookmarking is\noff — the job reprocesses by design. **ROOT_CAUSE_IDENTIFIED** with\n`LAYER: GLUE_BOOKMARK_CORRUPTED` (config issue).\n\nIf `--job-bookmark-option` is `job-bookmark-enable` but the job still\nreprocesses, the bookmark state's partition keys do not match the\ncurrent job script's `partition_keys` argument. This happens after a\nscript change that altered the `partition_keys` in\n`create_dynamic_frame.from_catalog`, or after a table schema change\nthat altered the partition columns.\n\nFix: reset the bookmark state:\n\nBookmark reset command (Step 6 fix) moved to [references\u002Fglue-bookmark-and-jdbc-reference.md](references\u002Fglue-bookmark-and-jdbc-reference.md) — load on demand.\n\nThen run the job again with `--job-bookmark-option: job-bookmark-enable`.\nThe first run after reset reprocesses all data (expected); subsequent\nruns should process only new partitions.\n\n### Step 7: JDBC connection error\n\nStep 7 probes (get-connection, SG checks, route table) and branches 7a\u002F7b\u002F7c moved to [references\u002Fglue-bookmark-and-jdbc-reference.md](references\u002Fglue-bookmark-and-jdbc-reference.md) — load on demand.\n\n### Step 8: Job timeout\n\nSymptom: the job run transitions to `TIMEOUT` after the configured\n`Timeout` value (default 150 minutes = 2.5 hours).\n\nProbe: [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — Step 8 Timeout\u002FExecutionTime.\n\nIf `ExecutionTime` is close to `Timeout` and the CloudWatch Logs show\nthe job was still making progress (not stuck), the timeout is too low\nfor the workload. **ROOT_CAUSE_IDENTIFIED** with\n`LAYER: GLUE_JOB_TIMEOUT`. Fix: raise the `Timeout` value.\n\nIf the logs show the job was stuck (no log activity for the last 30\nminutes before timeout), the root cause is upstream (a hung JDBC\nread, a stuck shuffle) — the timeout is a symptom, not the cause.\nInvestigate the last log activity before the timeout.\n\n### Step 9: CloudWatch Logs disabled\n\nSymptom: the job ran but CloudWatch Logs for the run are empty.\n\nProbe: [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — Step 9 SecurityConfiguration and IAM role check.\n\nIf the role does not have `AWSGlueServiceRole` (or equivalent inline\npermissions with `logs:CreateLogStream` and `logs:PutLogEvents`),\n**ROOT_CAUSE_IDENTIFIED** with\n`LAYER: GLUE_CLOUDWATCH_LOGS_DISABLED`. Fix: attach the\n`AWSGlueServiceRole` managed policy or add the log permissions inline.\n\nIf a SecurityConfiguration with CloudWatch KMS encryption is set,\nverify the KMS key is enabled and the role has `kms:Decrypt` on it.\n\n### Step 10: Python shell error\n\nSymptom: `py4j.Py4JException`, `PythonException`, or a Python\ntraceback in CloudWatch Logs.\n\nProbe: [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — Step 10 Traceback\u002Fpy4j log filter.\n\nIf the job's `Command.Name` is `pythonshell` and the script uses\n`SparkContext.getOrCreate()` or `glue_context`,\n**ROOT_CAUSE_IDENTIFIED** with `LAYER: GLUE_PYTHON_SHELL_ERROR`.\nPython shell jobs do not have a Spark context. Fix: change\n`Command.Name` to `glueetl` if Spark is needed.\n\nIf the job's `Command.Name` is `glueetl` and the error is a Python\ntraceback (not a JVM exception), the script has a Python-level bug.\n**ROOT_CAUSE_IDENTIFIED** with `LAYER: GLUE_ETL_SCRIPT_ERROR`. Fix:\naddress the Python error in the script.\n\n### Step 11: Performance — DynamicFrame vs RDD\n\nSymptom: the job runs but is very slow; execution time is dominated\nby `glue_context` overhead rather than Spark transformations.\n\nProbe: [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — Step 11 --enable-metrics check.\n\nIf `--enable-metrics` is not set, enable it and re-run. Then inspect\nthe job metrics dashboard for executor skew, spill, and GC overhead.\n\nCommon DynamicFrame performance issues:\n- Using `dynamicframe.toDF()` too late — the DynamicFrame serialises\n  on every transformation. Convert to DataFrame early.\n- Using `dynamicframe.show()` for debugging on large frames — it\n  materialises the entire frame.\n- Using `ApplyMapping` with thousands of columns — it is O(n^2) on\n  the column count.\n\nIf the job uses DynamicFrame operations where native Spark DataFrame\noperations would work, **ROOT_CAUSE_IDENTIFIED** with\n`LAYER: GLUE_DYNAMIC_FRAME_PERFORMANCE`. Fix: convert to DataFrame\nearly and use native Spark APIs.\n\n### Step 12: UNKNOWN \u002F INSUFFICIENT_DATA\n\n- **INSUFFICIENT_DATA** — A specific probe requires operator input\n  (the full CloudWatch Logs traceback, the Glue connection name, the\n  Data Catalog database name). List the missing pieces and the next\n  probe to run once the info is available.\n- **UNKNOWN** — All probes passed and the symptom persists. Escalate\n  to AWS Support with the JobName, JobRunId, the full CloudWatch Logs\n  for the run, and the Spark UI DAG (if enabled).\n\n## Output format\n\n```text\nTARGET: \u003Cjob-name (JobRunId)>\nVERDICT: ROOT_CAUSE_IDENTIFIED | INSUFFICIENT_DATA\nREASON: \u003C1-2 sentences naming the failed layer and the failing probe>\nLAYER: \u003CGLUE_ETL_SCRIPT_ERROR | GLUE_DPU_INSUFFICIENT |\n        GLUE_PYTHON_SHELL_ERROR | GLUE_SPARK_SHELL_ERROR |\n        GLUE_DATA_CATALOG_TABLE_NOT_FOUND | GLUE_S3_SOURCE_PATH_WRONG |\n        GLUE_PARTITION_NOT_LOADED | GLUE_BOOKMARK_CORRUPTED |\n        GLUE_JDBC_CONNECTION_ERROR | GLUE_DYNAMIC_FRAME_PERFORMANCE |\n        GLUE_CLOUDWATCH_LOGS_DISABLED | GLUE_JOB_TIMEOUT |\n        GLUE_WORKER_TYPE_WRONG | GLUE_JOB_METRICS_ANALYSIS |\n        GLUE_SPARK_UI_DAG | UNKNOWN>\nEVIDENCE:\n  - \u003Cobserved symptom — error string or observed behaviour>\n  - \u003Cfailing probe — command and its output that confirms the cause>\n  - \u003Cpassing probes — layers ruled out>\nREMEDIATION:\n  1. \u003Cspecific action with CLI command>\n  2. \u003Cverification command after the fix>\nCONFIRM: Before executing any state-changing CLI, emit and await operator\n  approval: \"CONFIRM: About to \u003Caction> on \u003Cjob-name> in \u003Cregion>. Proceed?\n  (yes\u002Fno)\"\n```\n\n### Worked example — DPU insufficient, G.1X → G.2X\n\n```text\nTARGET: etl-daily-orders (JobRunId: jr_abc123)\nVERDICT: ROOT_CAUSE_IDENTIFIED\nREASON: The job runs on G.1X with 10 workers (10 executors, 10 GB heap\n  each). The input dataset grew from 50 GB to 250 GB (5x) since the\n  last successful run. CloudWatch Logs show \"Container killed by YARN\n  for exceeding memory limits\" on 3 executors. The same script\n  succeeded on 50 GB; the failure is memory sizing, not a script bug.\n  G.2X would double the executor count to 20 (2 per worker) and halve\n  the per-executor data volume (Step 2a\u002F2b).\nLAYER: GLUE_DPU_INSUFFICIENT\nEVIDENCE:\n  - Symptom: job transitions to FAILED after 23 minutes. CloudWatch\n    Logs contain \"Container killed by YARN for exceeding memory\n    limits. Container [pid=1234] was killed.\" on 3 executors.\n  - Probe: aws glue get-job returns WorkerType=G.1X,\n    NumberOfWorkers=10, GlueVersion=glue-4.0.\n  - Probe: aws cloudwatch get-metric-statistics on\n    glue.executor.memory.maxUsed shows Maximum 9.7 GB (out of 10 GB\n    heap) in the 5 minutes before the kill.\n  - Passing: the job script has not changed since the last successful\n    run; the Data Catalog table exists; partitions are loaded; no JDBC\n    connection in play.\nREMEDIATION:\n  1. Switch the worker type to G.2X (doubles executor parallelism):\n     aws glue update-job --job-name etl-daily-orders \\\n       --job-update '{\"WorkerType\":\"G.2X\",\"NumberOfWorkers\":10}'\n  2. Optionally increase NumberOfWorkers to 15 if G.2X alone is not\n     enough.\n  3. Re-run the job and monitor glue.executor.memory.maxUsed; it\n     should peak below 5 GB per executor (half the data per executor).\nCONFIRM: Before updating the job, emit and await:\n  \"CONFIRM: About to switch etl-daily-orders from G.1X to G.2X with\n   10 workers. Proceed? (yes\u002Fno)\"\n```\n\n### Worked example — Bookmark partition-key mismatch\n\nFull bookmark partition-key-mismatch example moved to [references\u002Fworked-examples.md](references\u002Fworked-examples.md) — load on demand.\n\n## Anti-Patterns — NEVER\n\n- NEVER declare ROOT_CAUSE_IDENTIFIED without a failing probe that\n  matches the symptom.\n- NEVER assume a `Container killed by YARN` error is a script bug. It\n  is memory sizing — fix with more DPUs, G.2X, or repartitioning.\n- NEVER run a Spark job on G.025X. G.025X is for Python shell only.\n- NEVER assume \"bookmarking is enabled\" means only new data is\n  processed. Bookmark state is tied to partition keys. Reset after\n  any partition-key change.\n- NEVER assume a Glue JDBC connection alone is sufficient. The\n  database's SG must allow inbound from the Glue connection's SG.\n- NEVER assume the Data Catalog knows about new S3 partitions\n  automatically. Run `MSCK REPAIR TABLE` or a crawler after external\n  data lands.\n- NEVER assume CloudWatch Logs are on by default. The job's IAM role\n  needs `logs:CreateLogStream` and `logs:PutLogEvents`.\n- NEVER use DynamicFrame where native Spark DataFrame would work —\n  DynamicFrame adds serialisation overhead. Convert early.\n- NEVER keep the default 2.5h timeout for known long-running jobs.\n  NEVER diagnose a `TIMEOUT` without checking the last log activity\n  (stuck vs. making progress).\n- NEVER enable Spark UI without an S3 log path\n  (`--spark-event-logs-path`).\n- NEVER perform state-changing operations as diagnostic probes. Every\n  probe is read-only. State changes are remediations, gated behind\n  CONFIRM.\n\n## Pre-flight safety checks (run before any state-changing CLI)\n\n- **MANDATORY CONFIRMATION GATE.** Before `update-job`,\n  `reset-job-bookmark`, `start-job-run`, `stop-job-run`, or\n  `create-connection`, emit and await operator approval.\n- **Read-only first.** Every probe is read-only.\n- **Updating a job** (`update-job`) is safe for config-only changes\n  (WorkerType, NumberOfWorkers, Timeout). The next run uses the new\n  config.\n- **Resetting a bookmark** causes the next run to reprocess all data.\n  Confirm before resetting on large datasets.\n- **Starting a job run** consumes DPUs (G.2X = 2x G.1X cost). Confirm\n  the budget impact.\n- **Bulk remediation batch limit.** Batch into groups of at most 5\n  jobs, emit a single CONFIRM per batch, verify between batches.\n\n## Remediation guidance (command index)\n\n- **GLUE_DPU_INSUFFICIENT**: `update-job` — raise `NumberOfWorkers`\n- **GLUE_WORKER_TYPE_WRONG**: `update-job` — switch `WorkerType` to G.2X (or from G.025X to G.1X)\n- **GLUE_DATA_CATALOG_TABLE_NOT_FOUND**: run a crawler or `create-table`\n- **GLUE_S3_SOURCE_PATH_WRONG**: fix the path in the script or table `StorageDescriptor.Location`\n- **GLUE_PARTITION_NOT_LOADED**: `MSCK REPAIR TABLE` (Athena) or `start-crawler`\n- **GLUE_BOOKMARK_CORRUPTED**: `reset-job-bookmark` then re-run with `--job-bookmark-option=job-bookmark-enable`\n- **GLUE_JDBC_CONNECTION_ERROR**: `create-connection` + add inbound SG rule on the database\n- **GLUE_JOB_TIMEOUT**: `update-job` — raise `Timeout`\n- **GLUE_CLOUDWATCH_LOGS_DISABLED**: attach `AWSGlueServiceRole` or add `logs:*` permissions\n- **GLUE_PYTHON_SHELL_ERROR**: change `Command.Name` to `glueetl` for Spark\n- **GLUE_DYNAMIC_FRAME_PERFORMANCE**: convert to DataFrame early, use native Spark APIs\n\nSee `references\u002Fglue-worker-type-and-dpu-reference.md` for the full\nworker-type \u002F DPU mapping and `references\u002Fglue-bookmark-and-jdbc-reference.md`\nfor bookmark and JDBC connection detail.\n\n## References (load on demand)\n\n- [references\u002Fworked-examples.md](references\u002Fworked-examples.md) — secondary worked examples (bookmark partition-key mismatch).\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — pre-flight CLI and per-step read-only probe commands (Steps 3-5, 8-11).\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — philosophy deep dive and Step 0 operational gotchas.\n- [references\u002Fglue-worker-type-and-dpu-reference.md](references\u002Fglue-worker-type-and-dpu-reference.md) — Step 2 worker-type\u002FDPU probes and branch logic.\n- [references\u002Fglue-bookmark-and-jdbc-reference.md](references\u002Fglue-bookmark-and-jdbc-reference.md) — Step 6 bookmark probes and Step 7 JDBC probes\u002Fbranches.\n\n## Domain\n\nAWS CloudOps \u002F Glue Analytics, ETL Job Diagnostics, DPU Allocation,\nWorker Type Sizing, Data Catalog Partition Management, Job Bookmark\nState, and JDBC Connectivity.\n\n## AWS documentation\n\n- **AWS Glue Developer Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fglue\u002Flatest\u002Fdg\u002F\n- **Glue job runs** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fglue\u002Flatest\u002Fdg\u002Fmonitor-debug-operations.html\n- **Glue job bookmarks** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fglue\u002Flatest\u002Fdg\u002Fmonitor-continuations.html\n- **Glue connections (JDBC)** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fglue\u002Flatest\u002Fdg\u002Fpopulate-add-connection.html\n- **Glue worker types** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fglue\u002Flatest\u002Fdg\u002Faws-glue-programming-etl-glue-arguments.html\n- **Glue security configurations** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fglue\u002Flatest\u002Fdg\u002Fconsole-security-configurations.html\n- **Glue job metrics** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fglue\u002Flatest\u002Fdg\u002Fmonitor-profile-metrics.html\n- **Glue Spark UI** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fglue\u002Flatest\u002Fdg\u002Fmonitor-spark-ui.html\n- **MSCK REPAIR TABLE** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fathena\u002Flatest\u002Fug\u002Fmsck-repair-table.html\n- **AWS Health** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fhealth\u002Flatest\u002Fug\u002F\n",{"name":5,"license":15,"metadata":24,"description":7,"compatibility":44},{"tags":25,"phase":26,"author":27,"domain":28,"family":29,"version":30,"keywords":31,"task_type":32,"complexity":33,"entry_point":34,"skill_class":35,"when_to_use":36,"requires_llm":37,"verdict_shape":38,"when_not_to_use":39,"lifecycle_status":40,"invocation_schema":41,"supports_pipeline":37,"invocation_example":42,"activation_triggers":43},"glue, analytics, troubleshooting, etl, spark, job-failure, dpu, bookmark, jdbc, worker-type","2","Jacky Chan — AWS Community Builder","aws-cloudops","Analytics","0.1.0","AWS Glue, Glue job, PySpark, Scala, DPU, executor, YARN, out of memory, Python shell, Spark shell, Data Catalog, table not found, S3 source path, partition, MSCK REPAIR, job bookmark, bookmark corrupted, JDBC connection, RDS, Redshift, security group, dynamic frame, CloudWatch Logs, job timeout, worker type, G.1X, G.2X, G.025X, job metrics, Spark UI, troubleshooting","troubleshoot","high","false","capability","Diagnosing an AWS Glue job failure (job run transitions to FAILED, executor YARN kills container for OOM, Data Catalog table not found, S3 source path returns no data, partitions not loaded after MSCK REPAIR, job bookmark reprocessing all data on every run, JDBC connection to RDS\u002FRedshift times out, job exceeds the 2.5h default timeout, G.025X worker too weak for the Spark workload, or CloudWatch Logs are empty). Use when the symptom is \"the Glue job failed\" and the cause may be DPU allocation, worker type, bookmark state, JDBC connection, partition loading, script error, or worker-type mismatch.","true","ROOT_CAUSE_IDENTIFIED | INSUFFICIENT_DATA","Provisioning a new Glue job (use glue-crawler-deployer for crawlers or the job deployer), Glue Data Quality rule evaluation (use the Data Quality skill), Glue Studio notebook interactive development (use the notebook tooling), or Athena query failures (use athena-query-optimizer). This skill diagnoses job-run failures at execution time; it does not provision or tune steady-state ETL pipelines.","active","Input: either (a) a symptom description (\"Glue job failed with executor OOM\", \"bookmark reprocesses all data every run\", \"JDBC connection times out\"), optionally paired with the job configuration (JobName, worker type, DPU count, script path), OR (b) a JobName plus JobRunId and the CloudWatch Logs error for live-account diagnosis. Output: a deterministic TARGET\u002FVERDICT\u002FREASON\u002FLAYER\u002FEVIDENCE\u002FREMEDIATION block where VERDICT ∈ {ROOT_CAUSE_IDENTIFIED, INSUFFICIENT_DATA} and LAYER ∈ {GLUE_ETL_SCRIPT_ERROR, GLUE_DPU_INSUFFICIENT, GLUE_PYTHON_SHELL_ERROR, GLUE_SPARK_SHELL_ERROR, GLUE_DATA_CATALOG_TABLE_NOT_FOUND, GLUE_S3_SOURCE_PATH_WRONG, GLUE_PARTITION_NOT_LOADED, GLUE_BOOKMARK_CORRUPTED, GLUE_JDBC_CONNECTION_ERROR, GLUE_DYNAMIC_FRAME_PERFORMANCE, GLUE_CLOUDWATCH_LOGS_DISABLED, GLUE_JOB_TIMEOUT, GLUE_WORKER_TYPE_WRONG, GLUE_JOB_METRICS_ANALYSIS, GLUE_SPARK_UI_DAG, UNKNOWN}.","# Minimal valid input (offline symptom classification):\nSymptom: \"Glue job etl-daily-orders failed at 03:17 UTC. CloudWatch\nLogs show 'Container killed by YARN for exceeding memory limits'.\nThe job runs on G.1X with 10 workers. The same job succeeded last\nweek on a smaller dataset.\"\nJobName: etl-daily-orders\nJobRunId: jr_abc123\nWorkerType: G.1X\nNumberOfWorkers: 10\nTimeout: 150 (minutes, default 2.5h)\nGlueVersion: glue-4.0\nLast successful run: 2026-08-03 (dataset was 50 GB)\nFailed run dataset: 250 GB (5x growth)","Glue job FAILED, Glue executor YARN killed container, Glue out of memory, Glue container killed by YARN, Glue Data Catalog table not found, Glue S3 source path wrong, Glue partition not loaded, MSCK REPAIR TABLE, Glue job bookmark corrupted, Glue bookmark reprocessing all data, Glue JDBC connection error, Glue cannot connect to RDS, Glue cannot connect to Redshift, Glue job timeout, Glue worker type wrong, Glue G.025X too weak, Glue CloudWatch Logs empty, troubleshoot Glue job failure","Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). Offline symptom classification works from pasted error messages and job configuration. Live-account diagnosis uses aws glue get-job, get-job-run, get-job-runs, get-security-configuration, batch-get-jobs, aws logs get-log-events \u002F filter-log-events, aws glue get-table \u002F get-partitions, aws glue get-connection, aws ec2 describe-security-groups, and aws s3 ls \u002F head-object (AWS CLI v2, SSO or key-based credentials).","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Fglue-job-failure-troubleshooter",0,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills","https:\u002F\u002Fgithub.com\u002Fjhkchan","CTO & Co-Founder @Beever-AI  & @votee. CAISP. AWS Community Builder. Organizer@GDGCloudHK. MongoDB Champion. Technopreneur + Infornographer.","2026-09-24 08:54:10",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add jhkchan\u002Faws-agent-skills --skill glue-job-failure-troubleshooter",{"tool":59,"command":60},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill glue-job-failure-troubleshooter",{"tool":62,"command":63},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill glue-job-failure-troubleshooter","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fglue-job-failure-troubleshooter\u002FSKILL.md",true,[67,73,77,81,85,89,93,97,101,105,109,113,117,121,125,129,133,137,141,145],{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"eval\u002Ftest-cases.yaml","REFERENCE","参考文档",10211,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fglue-job-failure-troubleshooter\u002Feval\u002Ftest-cases.yaml",{"path":74,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":75,"sourceHtmlUrl":76},"evals\u002Fbaselines\u002Fglue-bookmark-partition-key-mismatch.md",546,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fglue-job-failure-troubleshooter\u002Fevals\u002Fbaselines\u002Fglue-bookmark-partition-key-mismatch.md",{"path":78,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":79,"sourceHtmlUrl":80},"evals\u002Fbaselines\u002Fglue-dpu-insufficient-g1x-oom.md",543,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fglue-job-failure-troubleshooter\u002Fevals\u002Fbaselines\u002Fglue-dpu-insufficient-g1x-oom.md",{"path":82,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":83,"sourceHtmlUrl":84},"evals\u002Fbaselines\u002Fglue-jdbc-connection-sg-missing.md",494,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fglue-job-failure-troubleshooter\u002Fevals\u002Fbaselines\u002Fglue-jdbc-connection-sg-missing.md",{"path":86,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":87,"sourceHtmlUrl":88},"evals\u002Fbaselines\u002Fglue-partition-not-loaded-msck.md",474,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fglue-job-failure-troubleshooter\u002Fevals\u002Fbaselines\u002Fglue-partition-not-loaded-msck.md",{"path":90,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":91,"sourceHtmlUrl":92},"evals\u002Fbaselines\u002Fglue-worker-type-g025x-spark.md",490,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fglue-job-failure-troubleshooter\u002Fevals\u002Fbaselines\u002Fglue-worker-type-g025x-spark.md",{"path":94,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":95,"sourceHtmlUrl":96},"evals\u002Feval_config.yaml",2101,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fglue-job-failure-troubleshooter\u002Fevals\u002Feval_config.yaml",{"path":98,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":99,"sourceHtmlUrl":100},"evals\u002Fevals.json",5141,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fglue-job-failure-troubleshooter\u002Fevals\u002Fevals.json",{"path":102,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":103,"sourceHtmlUrl":104},"evals\u002Fprompts\u002Fglue-bookmark-partition-key-mismatch.md",1404,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fglue-job-failure-troubleshooter\u002Fevals\u002Fprompts\u002Fglue-bookmark-partition-key-mismatch.md",{"path":106,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":107,"sourceHtmlUrl":108},"evals\u002Fprompts\u002Fglue-dpu-insufficient-g1x-oom.md",1311,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fglue-job-failure-troubleshooter\u002Fevals\u002Fprompts\u002Fglue-dpu-insufficient-g1x-oom.md",{"path":110,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":111,"sourceHtmlUrl":112},"evals\u002Fprompts\u002Fglue-jdbc-connection-sg-missing.md",1498,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fglue-job-failure-troubleshooter\u002Fevals\u002Fprompts\u002Fglue-jdbc-connection-sg-missing.md",{"path":114,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":115,"sourceHtmlUrl":116},"evals\u002Fprompts\u002Fglue-partition-not-loaded-msck.md",1298,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fglue-job-failure-troubleshooter\u002Fevals\u002Fprompts\u002Fglue-partition-not-loaded-msck.md",{"path":118,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":119,"sourceHtmlUrl":120},"evals\u002Fprompts\u002Fglue-worker-type-g025x-spark.md",1199,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fglue-job-failure-troubleshooter\u002Fevals\u002Fprompts\u002Fglue-worker-type-g025x-spark.md",{"path":122,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":123,"sourceHtmlUrl":124},"examples\u002FREADME.md",5538,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fglue-job-failure-troubleshooter\u002Fexamples\u002FREADME.md",{"path":126,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":127,"sourceHtmlUrl":128},"references\u002Fadvanced-patterns.md",3928,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fglue-job-failure-troubleshooter\u002Freferences\u002Fadvanced-patterns.md",{"path":130,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":131,"sourceHtmlUrl":132},"references\u002Fdiagnostic-commands.md",3615,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fglue-job-failure-troubleshooter\u002Freferences\u002Fdiagnostic-commands.md",{"path":134,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":135,"sourceHtmlUrl":136},"references\u002Fglue-bookmark-and-jdbc-reference.md",12534,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fglue-job-failure-troubleshooter\u002Freferences\u002Fglue-bookmark-and-jdbc-reference.md",{"path":138,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":139,"sourceHtmlUrl":140},"references\u002Fglue-worker-type-and-dpu-reference.md",10007,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fglue-job-failure-troubleshooter\u002Freferences\u002Fglue-worker-type-and-dpu-reference.md",{"path":142,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":143,"sourceHtmlUrl":144},"references\u002Fworked-examples.md",1583,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fglue-job-failure-troubleshooter\u002Freferences\u002Fworked-examples.md",{"path":146,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":147,"sourceHtmlUrl":148},"skill.usf.yaml",4629,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fglue-job-failure-troubleshooter\u002Fskill.usf.yaml",[150,157,164,171,178,185],{"skillNo":151,"name":152,"nameZh":6,"description":153,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":154,"categories":155,"keywords":156,"publishedAt":19},"01M7ADVD60X4PCAPKSE58P9NDC","xray-tracing-deployer","Deploys AWS X-Ray distributed tracing with production-grade configuration: X-Ray daemon deployment (EC2 systemd, ECS sidecar, EKS DaemonSet, Lambda built-in), SDK instrumentation (Java, Python, Node.js, Go, .NET) with annotations and metadata, sampling rules (default reservoir + rate vs custom rules with URL \u002F method \u002F service-name predicates), service map generation, trace query and retrieval, groups and insights, CloudWatch ServiceLens integration, IAM permissions (PutTraceSegments, GetSamplingRules), and latest features (Lambda Powertools tracing, OpenTelemetry \u002F ADOT Collector support, W3C trace context). Emits a READY_TO_DEPLOY checklist with every configuration item verified. Use when enabling X-Ray on a new application, adding tracing to ECS \u002F EKS \u002F Lambda, validating a sampling configuration, or generating daemon deployment CLI and IaC templates. Triggers: X-Ray, distributed tracing, X-Ray daemon, sampling rules, service map, X-Ray SDK, OpenTelemetry, ADOT, Lambda Powertools, CloudWatch ServiceLens.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxray-tracing-deployer\u002FSKILL.md",[],[],{"skillNo":158,"name":159,"nameZh":6,"description":160,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":161,"categories":162,"keywords":163,"publishedAt":19},"01M7ADTVJ7DCBM9CB1FY51GH7J","wellarchitected-workload-auditor","Audits AWS Well-Architected Tool workloads for review staleness, per-pillar high-risk issue counts, milestone tracking gaps, and remediation plan completeness. Emits a deterministic verdict (STALE_REVIEW | HIGH_RISK | CONFIG_GAP | OK) per workload with per-pillar risk breakdown, milestone trend analysis, and specific remediation. Use when reviewing Well-Architected workloads, checking WA review freshness, auditing high-risk issues per pillar, validating milestone coverage, or tracking remediation plans.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwellarchitected-workload-auditor\u002FSKILL.md",[],[],{"skillNo":165,"name":166,"nameZh":6,"description":167,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":168,"categories":169,"keywords":170,"publishedAt":19},"01M7ADT59G6FTTNZYHT2QRPNNP","wellarchitected-review-operator","Operates AWS Well-Architected Tool reviews end-to-end — creates workloads, runs pillar reviews (operational excellence, security, reliability, performance, cost optimization, sustainability, Prosperity), answers questions with risk-tier rationale, generates reports and improvement plans, creates milestones, and integrates with Trusted Advisor and Well-Architected Labs. Runs deterministic pre-checks (workload existence, lens availability, pillar coverage), emits the exact update-answer \u002F get-consolidated-report CLI behind a CONFIRM gate, and verifies risk-tier transitions. Emits READY | BLOCKED | COMPLETED. Use when creating a workload, answering pillar questions, generating an improvement plan, creating a milestone, or integrating with Trusted Advisor. Triggers: well-architected tool, well architected review, workload review, pillar, operational excellence, security, reliability, performance, cost optimization, sustainability, prosperity, improvement plan, milestone, trusted advisor.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwellarchitected-review-operator\u002FSKILL.md",[],[],{"skillNo":172,"name":173,"nameZh":6,"description":174,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":175,"categories":176,"keywords":177,"publishedAt":19},"01M7ADSH5JA9QHNPPHQCD7EVA7","wafv2-web-acl-deployer","Provisions AWS WAFv2 Web ACLs with correct production defaults: scope selection (CLOUDFRONT vs REGIONAL), managed rule groups (AWSManagedRulesCommonRuleSet, SQLiRuleSet, LinuxRuleSet, WindowsRuleSet, IPReputationList, BotControlRuleSet, AmazonIpReputationList, ATP), custom rules (byte match, IP set, regex pattern, geo match, size constraint, rate-based), rule priority ordering, logging destinations (Kinesis Firehose, CloudWatch Logs, S3), resource association (ALB, API Gateway, CloudFront), rate-based rules with aggregate keys (IP, forwarded IP), Challenge and CAPTCHA actions, and account takeover prevention. Emits a READY_TO_DEPLOY checklist. Use when creating a Web ACL, attaching managed rules, configuring rate limiting, enabling WAF logging, associating a Web ACL with an ALB\u002FAPI Gateway\u002FCloudFront, or configuring CAPTCHA\u002FChallenge actions. Triggers: create WAF Web ACL, WAFv2, managed rule groups, WAF rate limiting, WAF logging, WAF CAPTCHA, WAF Challenge action, bot control, ATP managed rules.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwafv2-web-acl-deployer\u002FSKILL.md",[],[],{"skillNo":179,"name":180,"nameZh":6,"description":181,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":182,"categories":183,"keywords":184,"publishedAt":19},"01M7ADRYFAT8R73FBNCHRC573X","wafv2-web-acl-auditor","Audits AWS WAFv2 Web ACL configurations to determine whether the ACL provides effective protection: default-action posture (Allow vs Block), managed-rule-group coverage gaps, rule effectiveness (BLOCK vs COUNT, shadow\u002Fbypass rules, stale exclusions), rate-based rule correctness, logging and visibility configuration, and text-transformation bypass vectors. Emits a deterministic verdict per Web ACL. Use when reviewing a WAFv2 Web ACL for security posture, checking managed-rule coverage, validating rate-limit configuration, auditing WAF logging, or hardening a WAF before production deployment. Triggers: WAF, WAFv2, Web ACL, managed rule group, AWSManagedRules, rate-based rule, CAPTCHA, Challenge, OverrideAction, Count mode, forwarded IP, Bot Control, ATP, text transformation, WAF logging, WAF visibility, OWASP, SQLi, XSS, RFI.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwafv2-web-acl-auditor\u002FSKILL.md",[],[],{"skillNo":186,"name":187,"nameZh":6,"description":188,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":189,"categories":190,"keywords":191,"publishedAt":19},"01M7ADR8W7G72JX4KFGN03QK8Q","waf-rule-deployer","Provisions AWS WAFv2 rule sets with production defaults: Web ACL creation (CloudFront scope in us-east-1 vs Regional scope), rule groups (managed vs custom) with capacity planning in WCU (Web ACL Capacity Units, 1500 default per ACL), managed rule groups (AWSManagedRulesCommonRuleSet, AWSManagedRulesSQLiRuleSet, AWSManagedRulesAmazonIpReputationList, AWSManagedRulesLinuxRuleSet, AWSManagedRulesWindowsRuleSet, AWSManagedRulesUnixRuleSet), custom rules (byte-match, regex pattern set, geo-match, rate-based), IP set and regex pattern set resources, rule priority ordering (lowest number evaluated first), action types (allow, block, count, CAPTCHA, Challenge), bot control managed rule group, account takeover. Triggers: create WAF rule, WAF managed rule group, WAF custom rule, WAF byte match, WAF geo match, WAF rate based rule, WAF IP set, WAF regex pattern set, WAF WCU budget, WAF CloudFront ACL, WAF logging Kinesis Firehose, WAF bot control, WAF ATP, WAF label matching, WAF Challenge action, WAF CAPTCHA.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwaf-rule-deployer\u002FSKILL.md",[],[]]