Skip to main content

spark-advisor-analyzer

AI-powered Spark job analyzer — NATS worker service. Part of the spark-advisor ecosystem.

Install

pip install spark-advisor-analyzer

What it does

Combines deterministic rules engine with optional Claude AI analysis to provide actionable Spark configuration recommendations.

  • Rules engine — 11 expert rules detecting data skew, GC pressure, disk spill, and more
  • AI analysis — Claude API integration for prioritized recommendations with causal chains
  • Agent mode — multi-turn Claude tool_use loop for autonomous job exploration
  • NATS worker — FastStream subscriber for analysis.run and analysis.run.agent

Deployment

As a standalone NATS worker:

export SA_ANALYZER_NATS__URL=nats://localhost:4222
export SA_ANALYZER_AI__API_KEY=sk-or-...
spark-advisor-analyzer

Or use via spark-advisor CLI or spark-advisor-mcp server.

Configuration

Variable Default Description
SA_ANALYZER_NATS__URL nats://localhost:4222 NATS broker URL
SA_ANALYZER_AI__ENABLED true Enable AI analysis
SA_ANALYZER_AI__API_KEY — LLM API key (required if AI enabled)
SA_ANALYZER_AI__BASE_URL https://openrouter.ai/api/v1 LLM API base URL
SA_ANALYZER_OTEL__ENABLED false Enable OpenTelemetry distributed tracing

Links

License

Apache 2.0

Metadata

Release files for spark-advisor-analyzer 0.1.21

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spark-advisor-analyzer 0.1.21
File Size Uploaded Provenance Actions
spark_advisor_analyzer-0.1.21.tar.gz 24.0 kB Without provenance Details for spark_advisor_analyzer-0.1.21.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for spark-advisor-analyzer 0.1.21
File Interpreter ABI Platform Actions
spark_advisor_analyzer-0.1.21-py3-none-any.whl Python 3 none any Details for spark_advisor_analyzer-0.1.21-py3-none-any.whl

Total release size: 49.5 kB

Release files / spark_advisor_analyzer-0.1.21.tar.gz

Download URL spark_advisor_analyzer-0.1.21.tar.gz
Size 24.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d9339b4be99e70b2e4579635286557535b2a1926b4ce0b640c4f8725b95d5978
BLAKE2b-256 checksum
How to use checksums
f4e1caff2a3d173f1924fb681ae5cf8a923ad360a6b4d795e1bc5423429cb0d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","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}

Release files / spark_advisor_analyzer-0.1.21-py3-none-any.whl

Download URL spark_advisor_analyzer-0.1.21-py3-none-any.whl
Size 25.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
716a38607cac9d010861dc05090bde4b618ec2c289fc9b24cafa83aa4730a64a
BLAKE2b-256 checksum
How to use checksums
15478876d48e1dcee180942d5e83e410cd299baf64db0b8683f1dc8d6bd5091c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","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}

Security for spark-advisor-analyzer 0.1.21

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page