AI-powered Apache Spark job analyzer and configuration advisor
Project description
spark-advisor
AI-powered Apache Spark job analyzer and configuration advisor.
Stop guessing Spark configs. Let data and AI tell you what's wrong.
Install
pip install spark-advisor-cli
Quick Start
# Analyze from event log file (rules-only, free)
spark-advisor analyze /path/to/event-log.json.gz --no-ai
# Analyze with AI recommendations
export ANTHROPIC_API_KEY=sk-ant-...
spark-advisor analyze /path/to/event-log.json.gz
# Analyze from History Server
spark-advisor analyze app-20250101120000-0001 -hs http://yarn:18080
# Agent mode (multi-turn AI analysis)
spark-advisor analyze /path/to/event-log.json.gz --agent
# Scan recent jobs
spark-advisor scan -hs http://yarn:18080 --limit 20
What it detects
11 deterministic rules: data skew, disk spill, GC pressure, shuffle partitions, executor idle, task failures, small files, broadcast join threshold, serializer choice, dynamic allocation, memory overhead.
Links
License
Apache 2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file spark_advisor_cli-0.1.0.tar.gz.
File metadata
- Download URL: spark_advisor_cli-0.1.0.tar.gz
- Upload date:
- Size: 12.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5cd4f0b262f5509fef70c1ce29b616bae9ca016522db5f460e1193037b7ee77a
|
|
| MD5 |
4f344e016df469f31784747b6b53105f
|
|
| BLAKE2b-256 |
8f74f4a34ea86743edaea4117be3c335597663282e35f0717e0406f709a864ae
|
File details
Details for the file spark_advisor_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: spark_advisor_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66e2f3444027a8b49298ebc62489b92e76de4abf3710db38162e509b92a39c1a
|
|
| MD5 |
3d2267473601c415a55fce168c8ba8bb
|
|
| BLAKE2b-256 |
94ec9dfcfd5647d44254dd2b087e950dbba8a1ca5190ffa36c124048429f7f4c
|