Skip to main content

Intelligent debugging tool for Apache Spark jobs

Project description

Papaya Logo


Papaya is an intelligent debugging tool designed specifically for Apache Spark jobs.

It seamlessly integrates error monitoring, real-time notifications, and automated LLM-powered debugging to help debug your complicated Spark workflows.

  • Real-time Monitoring: Continuously listens to your Apache Spark jobs and instantly detects errors and anomalies.
  • Discord Alerts: Sends immediate notifications directly to your Discord channel whenever issues arise.
  • Intelligent Debugging: Optionally analyzes your Spark errors and suggest automatic code fixes.
  • Automated Pull Requests: Papaya automatically submits GitHub pull requests containing proposed code changes.

🛠️ Installation

Install Papaya via pip:

pip install papaya-debugger

🌟 Quick Start

Run Papaya by specifying the Spark UI URL:

papaya http://localhost:4040

To enable Discord notifications (requires DISCORD_TOKEN environment variable):

papaya http://localhost:4040 --discord-cid 123456789

To enable GitHub integration (requires GH_APP_TOKEN environment variable):

papaya http://localhost:4040 --github-repo myorg/myrepo

You can also adjust the polling interval (default is 0.5 seconds):

papaya http://localhost:4040 --poll 2.0

Note: You must set the GEMINI_API_KEY environment variable for Papaya to function.


📝 CLI Options & Environment Variables

Positional Arguments:

  • SPARK_UI_URL (required): Spark UI URL of the active job to monitor (e.g., http://localhost:4040)

Optional Arguments:

  • --discord-cid <int>: Discord channel ID to send messages to (requires DISCORD_TOKEN env var)
  • --github-repo <OWNER/REPO>: GitHub repository of the Spark job (requires GH_APP_TOKEN env var)
  • --poll <SECONDS>: Polling interval in seconds (default: 0.5)

Environment Variables:

  • GEMINI_API_KEY: Required for Papaya to function (used for LLM-powered debugging).
  • DISCORD_TOKEN: Required if using --discord-cid to send notifications to Discord.
  • GH_APP_TOKEN: Required if using --github-repo to link to a GitHub repository.

📚 Documentation

Docs coming soon :)


🌐 Contributing

Contributions are welcome! Please open issues and pull requests on GitHub.


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

papaya_debugger-0.1.1.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

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

papaya_debugger-0.1.1-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

Details for the file papaya_debugger-0.1.1.tar.gz.

File metadata

  • Download URL: papaya_debugger-0.1.1.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for papaya_debugger-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f243259ddf6441c6fd668cae235f05c7b55daf0facb816f6ac6aca857f8eeb67
MD5 93dc520ea9f50c962148285ed8a52555
BLAKE2b-256 f3231574bf584bdab292bd4319bf518b5964679275346982e65d38a21c7efc20

See more details on using hashes here.

File details

Details for the file papaya_debugger-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for papaya_debugger-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 189b15ba0b71ede842da4254575ac6c2c5572b7c40c31002d003f016b6f44957
MD5 334f37f04fc50f24211ff960e20e4da1
BLAKE2b-256 b737dfdb792c7803579141321138e3df46fb313709496a6f03d2981e615d5fea

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