Skip to main content

AI-powered Spark job analyzer - NATS worker service

Project description

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 ANTHROPIC_API_KEY=sk-ant-...
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
ANTHROPIC_API_KEY Claude API key (required if AI enabled)

Links

License

Apache 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spark_advisor_analyzer-0.1.10.tar.gz (21.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spark_advisor_analyzer-0.1.10-py3-none-any.whl (22.3 kB view details)

Uploaded Python 3

File details

Details for the file spark_advisor_analyzer-0.1.10.tar.gz.

File metadata

  • Download URL: spark_advisor_analyzer-0.1.10.tar.gz
  • Upload date:
  • Size: 21.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","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

Hashes for spark_advisor_analyzer-0.1.10.tar.gz
Algorithm Hash digest
SHA256 35d06e0bed2095622e012f1de50c67a2f0c435cf5872cff1ce63d2ff983d8a52
MD5 261fe36d22b75786fbde3e55642e2446
BLAKE2b-256 58ffb01a782116767e7e4a9418760c23b358dd590de8c86dd64f4d9489f29522

See more details on using hashes here.

File details

Details for the file spark_advisor_analyzer-0.1.10-py3-none-any.whl.

File metadata

  • Download URL: spark_advisor_analyzer-0.1.10-py3-none-any.whl
  • Upload date:
  • Size: 22.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","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

Hashes for spark_advisor_analyzer-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 ed3a0bd19632e3d71c5d77f084cbc898ef1c1333e6697f2bf6a05dde93ed16ce
MD5 6405d8a9b5bf938a3ffd54fe634b9ad0
BLAKE2b-256 c0e8248bf87cee96ed778b228ee6317cfd1bdfe3b7caadd1753d3e9ea4d5c1a8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page