Skip to main content

Download and optimize spark clusters automatically

Project description

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

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_logs-0.0.2.tar.gz (45.7 kB view details)

Uploaded Source

Built Distribution

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

spark_logs-0.0.2-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file spark_logs-0.0.2.tar.gz.

File metadata

  • Download URL: spark_logs-0.0.2.tar.gz
  • Upload date:
  • Size: 45.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.5

File hashes

Hashes for spark_logs-0.0.2.tar.gz
Algorithm Hash digest
SHA256 52541bfbf5bdf287b7f5740e26402c24f5a892c031a78e139107a31ef28e7460
MD5 03a7cf7b9ac3babd51c353b19d7d74ea
BLAKE2b-256 46f884adfe6a66fc20a0922e0b0331145e1979a1e3caca42551be63ef8478702

See more details on using hashes here.

File details

Details for the file spark_logs-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: spark_logs-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.5

File hashes

Hashes for spark_logs-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dd388921029fb89406dd3fc71861f8ed316f0ac3e56d734703c258d07d246d83
MD5 0c72a5db9179b85b18695969af56399e
BLAKE2b-256 4c92275b3cd2aef399b5ebf0d74ddc7d8ae2ecea6a7466b52e66f705243c9db6

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