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.0.tar.gz (15.9 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.0-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: papaya_debugger-0.1.0.tar.gz
  • Upload date:
  • Size: 15.9 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.0.tar.gz
Algorithm Hash digest
SHA256 e66e8290542dba611caffea96c8670240e55a53a6bfcb3017caf9ba102fe2700
MD5 37a97945f0ad5dc9ce57a81d93dafe49
BLAKE2b-256 9e8f65409173bf814af1810325661c6cde2699bdcd649bbe8998728c5340bf9e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for papaya_debugger-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5f8a2811d77a3afed6bd3da3cf65ff59e1c1f0789ee8e68c9f0f0aa3cbbaa9f1
MD5 efb4f4c5a5d4f55108e187e65c021836
BLAKE2b-256 245d6872dfaf074ef22e065bd5e768170f356af189f7fbb30fb7c47b37a057a4

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