spark-operations-cli

Diagnose failed Spark jobs and Livy sessions in Microsoft Fabric via read-only CLI.

Updated Jun 1, 2026
One-click install
npx skills add https://github.com/weiflycc-cmd/skills-for-fabric --skill spark-operations-cli-weiflycc-cmd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: spark-operations-cli
Source: https://github.com/weiflycc-cmd/skills-for-fabric/tree/main/plugins/fabric-operations/skills/spark-operations-cli
Command: npx skills add https://github.com/weiflycc-cmd/skills-for-fabric --skill spark-operations-cli-weiflycc-cmd

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill eliminates the guesswork and manual log diving when Microsoft Fabric Spark jobs fail, Livy sessions hang, or performance degrades. It provides a systematic, read-only CLI-based diagnostic workflow that automatically identifies root causes—from OOM errors and data skew to capacity throttling—without requiring direct cluster access.

Core Features & Use Cases

  • Automated Failure Triage: Diagnose failed notebooks, Spark Job Definitions, and Lakehouse jobs by automatically querying Spark Advisor, job instances, and Livy logs via REST APIs.
  • Performance Bottleneck Detection: Identify data skew, shuffle spill, GC pressure, and underutilized capacity using stage metrics and resource usage APIs.
  • Pipeline Run Diagnosis: Trace failures across complex pipeline runs, including ForEach iterations and nested pipelines, with exact cell-level traceback extraction.
  • Session Health Monitoring: Detect idle/zombie Livy sessions, capacity pressure, and stuck startup states across workspaces.

Quick Start

Use the spark-operations-cli skill to diagnose the failed notebook ETL_Daily in workspace Production and provide a prioritized list of findings and fixes.

Frequently Asked Questions about spark-operations-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I diagnose failed Spark jobs and unhealthy Livy sessions in Microsoft Fabric?

Diagnose failed Spark jobs and unhealthy Livy sessions using read-only CLI triage that queries Spark Monitoring APIs and Livy logs to identify root causes like OOM errors and capacity throttling without direct cluster access.

Do I need Azure authentication to troubleshoot Fabric Spark performance bottlenecks?

Yes, Azure authentication and Fabric REST API access via az rest are required to automatically resolve workspace and item IDs, query Spark Monitoring APIs, and generate structured diagnostic reports with severity classifications.

What is the best way to trace pipeline run failures across ForEach iterations in Fabric?

Trace pipeline run failures across ForEach iterations and nested pipelines by querying job instances and Livy logs via REST APIs, extracting exact cell-level traceback to pinpoint the failing notebook or Spark Job Definition.

How do I detect data skew and GC pressure in Fabric Spark Job Definitions?

Detect data skew, shuffle spill, and GC pressure by analyzing stage metrics and resource usage APIs, identifying underutilized capacity and performance bottlenecks across Fabric workspaces to generate prioritized fixes.

Can I monitor idle or zombie Livy sessions across Fabric workspaces?

Monitor idle or zombie Livy sessions, capacity pressure, and stuck startup states across workspaces by querying session health APIs, detecting sessions that waste capacity resources and require cleanup.

Why does my Fabric notebook ETL fail with capacity throttling?

Notebook ETL failures with capacity throttling occur when Fabric capacity limits are exceeded; query resource usage APIs and Spark Advisor to classify severity and identify whether throttling or data skew is the root cause.