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)
| File | Size | Uploaded | |
|---|---|---|---|
| spark_logs-0.0.2.tar.gz | 45.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| spark_logs-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
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
|