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)
SA_ANALYZER_OTEL__ENABLED false Enable OpenTelemetry distributed tracing

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.12.tar.gz (22.1 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.12-py3-none-any.whl (23.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: spark_advisor_analyzer-0.1.12.tar.gz
  • Upload date:
  • Size: 22.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","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.12.tar.gz
Algorithm Hash digest
SHA256 fcfede24b351a8cc7bac978f9652f6a51694dc9fc99c94eaed359e75e23f1e92
MD5 c2b89dcb91c21054758b6d658fd5f79b
BLAKE2b-256 bce193f8a0411c757883ed5ededbbe95a5dd2207fa0a646639b1b7c25783005c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: spark_advisor_analyzer-0.1.12-py3-none-any.whl
  • Upload date:
  • Size: 23.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","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.12-py3-none-any.whl
Algorithm Hash digest
SHA256 e96df866b00d7420cc916573edf6f14bf20ae6e3b8bc79820a084815a1eda553
MD5 3583d041c63a10ea8ba4365adf3ace5d
BLAKE2b-256 499aca9c3386a1f358e83086449cd170ac3c065af309517b494c158ae3464f2c

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