spark-advisor-hs-connector
Spark History Server connector — fetches job data and publishes to NATS. Part of the spark-advisor ecosystem.
Install
pip install spark-advisor-hs-connector
What it does
Connects to Apache Spark History Server REST API to fetch job metrics, stage details, executor info, and configuration. Operates in two modes:
- On-demand — NATS subscriber for
job.fetchrequests (returnsJobAnalysis) - Background polling — periodically scans History Server for new applications and publishes them to NATS
History Server endpoints used
GET /api/v1/applications/{app-id}— app metadataGET /api/v1/applications/{app-id}/environment— spark.* configGET /api/v1/applications/{app-id}/stages— stage metricsGET /api/v1/applications/{app-id}/stages/{id}/{attempt}/taskSummary— task distributionGET /api/v1/applications/{app-id}/executors— executor metrics
Deployment
export SA_HS_CONNECTOR_HISTORY_SERVER_URL=http://yarn:18080
export SA_HS_CONNECTOR_NATS__URL=nats://localhost:4222
spark-advisor-hs-connector
Configuration
| Variable | Default | Description |
|---|---|---|
SA_HS_CONNECTOR_HISTORY_SERVER_URL |
http://localhost:18080 |
Spark History Server URL |
SA_HS_CONNECTOR_NATS__URL |
nats://localhost:4222 |
NATS broker URL |
SA_HS_CONNECTOR_POLL_INTERVAL_SECONDS |
60 |
Polling interval |
SA_HS_CONNECTOR_BATCH_SIZE |
50 |
Apps per poll cycle |
SA_HS_CONNECTOR_OTEL__ENABLED |
false |
Enable OpenTelemetry distributed tracing |
Links
License
Apache 2.0
Metadata
Release files for spark-advisor-hs-connector 0.1.21
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| spark_advisor_hs_connector-0.1.21.tar.gz | 15.5 kB | Without provenance | Details for spark_advisor_hs_connector-0.1.21.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| spark_advisor_hs_connector-0.1.21-py3-none-any.whl | Python 3 | none | any | Details for spark_advisor_hs_connector-0.1.21-py3-none-any.whl |
Total release size: 29.0 kB
Release files / spark_advisor_hs_connector-0.1.21.tar.gz
| Download URL | spark_advisor_hs_connector-0.1.21.tar.gz |
|---|---|
| Size | 15.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7cf856269cb2f3066f851ec5588b244fc6999e9cd81f030d3d41524204a86895
|
|
BLAKE2b-256 checksum How to use checksums |
3d543113c31a1ac86c2f16fe560a050fc118477ac2dd85bcfb98f215c41a2df0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / spark_advisor_hs_connector-0.1.21-py3-none-any.whl
| Download URL | spark_advisor_hs_connector-0.1.21-py3-none-any.whl |
|---|---|
| Size | 13.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ac57dcb1bb6463d2becf58c1e0cabbb41ad4aaedc41771f978515229ea9b268e
|
|
BLAKE2b-256 checksum How to use checksums |
51e582d7ab758dbbda953e49ac63cfbe6c0cfa52fb8a1a4df6aed689aa6da405
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for spark-advisor-hs-connector 0.1.21
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.