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.1.tar.gz (42.3 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.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: spark_logs-0.0.1.tar.gz
  • Upload date:
  • Size: 42.3 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.1.tar.gz
Algorithm Hash digest
SHA256 134e00c32fc6f30d7d20f8cefe632c12870d33a605bb1cdde182b7691e69261d
MD5 6fe08a5fd0b600ff0c935979d7d0be56
BLAKE2b-256 fe7b63636c76ecf886a5ee9bfe7bf51dc53164a71517470e3143e38cb80bb815

See more details on using hashes here.

File details

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

File metadata

  • Download URL: spark_logs-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.2 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7a0cde949450709f4c21c14d73d67c2d96dc00872b29b4a6552c8024291d8dbf
MD5 359b77d4895a2dea724f67b5125a9e94
BLAKE2b-256 28dbdb9a3145bcf295a58668cb71950084b44d49090a3a0bc587635f3863d071

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