Skip to main content

Spark Logs

A tool for downloading and managing logs from Dataproc Spark clusters.

Installation

pip install .

Usage

The tool is fully interactive by default and will prompt for any missing information:

# Fully interactive - will prompt for project (with selection list), cluster, and application
spark-logs

# Partially interactive - only prompts for cluster and application
spark-logs --project my-gcp-project

# Partially interactive - only prompts for application
spark-logs --project my-gcp-project --cluster my-cluster

# No prompts - directly downloads logs when all parameters are specified
spark-logs --project my-gcp-project --cluster my-cluster --app-id application_1234567890_0001

You can also use the tool for listing resources:

# List all available Google Cloud projects
spark-logs --list-projects

# List all clusters in a project
spark-logs --project my-gcp-project --list-clusters

# List all Spark applications for a specific cluster
spark-logs --project my-gcp-project --cluster my-cluster --list-apps

Optional Arguments

  • --region: Specify the GCP region (default: us-central1)
  • --output-dir: Directory to save logs (default: ./logs)
  • --service-account-json: Path to service account JSON key file

Authentication

The tool uses Google Cloud authentication. If no service account is specified, it will use the default authentication methods (gcloud auth, environment variables, etc.).

To use a service account:

spark-logs --service-account-json path/to/service-account.json

Metadata

Release files for spark-logs 0.0.2

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-logs 0.0.2
File Size Uploaded Provenance Actions
spark_logs-0.0.2.tar.gz 45.7 kB Without provenance Details for spark_logs-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for spark-logs 0.0.2
File Interpreter ABI Platform Actions
spark_logs-0.0.2-py3-none-any.whl Python 3 none any Details for spark_logs-0.0.2-py3-none-any.whl

Total release size: 52.7 kB

Release files / spark_logs-0.0.2.tar.gz

Download URL spark_logs-0.0.2.tar.gz
Size 45.7 kB
Tags Source
SHA-256 checksum
How to use checksums
52541bfbf5bdf287b7f5740e26402c24f5a892c031a78e139107a31ef28e7460
BLAKE2b-256 checksum
How to use checksums
46f884adfe6a66fc20a0922e0b0331145e1979a1e3caca42551be63ef8478702
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.5

Release files / spark_logs-0.0.2-py3-none-any.whl

Download URL spark_logs-0.0.2-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dd388921029fb89406dd3fc71861f8ed316f0ac3e56d734703c258d07d246d83
BLAKE2b-256 checksum
How to use checksums
4c92275b3cd2aef399b5ebf0d74ddc7d8ae2ecea6a7466b52e66f705243c9db6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.5

Security for spark-logs 0.0.2

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.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

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