spark-history-cli-fd646e — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited spark-history-cli-fd646e (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Use this skill when the task is about exploring or debugging data exposed by a running Apache Spark History Server.
pip install spark-history-cliOr if not on PATH after install:
python -m spark_history_cli --json apps--json, which makes downstream reasoning and comparisons much easier.--json unless the user explicitly wants a human-formatted table.--server <url> or SPARK_HISTORY_SERVER to point at the right SHS. If the user does not specify one, assume http://localhost:18080.python -m pip install spark-history-cli if tool permissions allow it.spark-history-cli --json --server http://localhost:18080 apps
spark-history-cli --json --server http://localhost:18080 app <app-id>
spark-history-cli --json --server http://localhost:18080 --app-id <app-id> jobs
spark-history-cli --json --server http://localhost:18080 --app-id <app-id> stages
spark-history-cli --json --server http://localhost:18080 --app-id <app-id> executors --all
spark-history-cli --json --server http://localhost:18080 --app-id <app-id> sql
spark-history-cli --json --server http://localhost:18080 --app-id <app-id> sql-plan <exec-id> --view final
spark-history-cli --server http://localhost:18080 --app-id <app-id> sql-plan <exec-id> --dot -o plan.dot
spark-history-cli --json --server http://localhost:18080 --app-id <app-id> sql-jobs <exec-id>
spark-history-cli --json --server http://localhost:18080 --app-id <app-id> summary
spark-history-cli --json --server http://localhost:18080 --app-id <app-id> env
spark-history-cli --server http://localhost:18080 --app-id <app-id> logs output.zipIf spark-history-cli is not on PATH, use:
python -m spark_history_cli --json appsapps for recent runs, durations, status, and picking candidatesapp <id> for high-level details about one runattempts for multi-attempt apps (list or show specific attempt details)jobs, job <id> for job-level failures or progressjob-stages <id> for stages belonging to a jobstages, stage <id> for task/stage bottlenecksstage-summary <id> for task metric quantiles (p5/p25/p50/p75/p95) — duration, GC, memory, shuffle, I/Ostage-tasks <id> for individual task details — sorted by runtime to find stragglersexecutors --all for executor churn or skew investigationssql for SQL execution history and plan graph datasql-plan <id> for SQL plan extraction:--view full (default): full plan text--view initial: only the Initial Plan (pre-AQE)--view final: only the Final Plan (post-AQE)--dot: Graphviz DOT output for visualizing the plan DAG--json + --view: structured JSON with isAdaptive, sectionCount, plan, and sections-o <file>: write output to file instead of stdoutsql-jobs <id> for jobs associated with a SQL execution (fetches all linked jobs by ID)summary for a concise application overview: app info, resource config (driver/executor/shuffle), and workload stats (jobs/stages/tasks/SQL)env for Spark config/runtime contextlogs only when the user explicitly wants the event log archive saved locally| Issue | Solution |
|---|---|
Connection refused | SHS not running — start with $SPARK_HOME/sbin/start-history-server.sh |
404 Not Found on app | App ID may include attempt suffix — use apps to list valid IDs |
| No apps listed | Check spark.history.fs.logDirectory points to the right event log path |
ModuleNotFoundError | CLI not installed — run pip install spark-history-cli |
| Wrong server | Set SPARK_HISTORY_SERVER env var or use --server <url> |
| Timeout on large apps | SHS may be parsing event logs — wait and retry, or check SHS logs |
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.