# Spark History Server provider

The **Spark History Server provider** collects metrics from a Spark History Server instance and makes them available to Akamas.

Prerequisites

This section provides the minimum requirements that you should match before using the Spark History Server telemetry provider.

### Supported versions <a href="#supported-versions" id="supported-versions"></a>

* Apache Spark 2.3

### Network requirements <a href="#network-requirements" id="network-requirements"></a>

* Spark History Server API must be reachable at the provided address and port (the default port is `18080`).

## Supported component types <a href="#supported-component-types" id="supported-component-types"></a>

* spark-application

You can check [Spark History Server provider metrics mapping](/akamas-docs/3.6/reference/optimization-packs/spark-pack.md) to see how component-types metrics are extracted by this provider.

## Akamas supported version <a href="#akamas-supported-version" id="akamas-supported-version"></a>

* Versions < 2.0.0 are compatible with Akamas until version 1.8.0
* Versions >= 2.0.0 are compatible with Akamas from version 1.9.0

## Workflow requirements <a href="#workflow-requirements" id="workflow-requirements"></a>

This section lists the workflow operators this provider depends on:

* [SparkSubmit Operator](/akamas-docs/3.6/reference/workflow-operators/sparksubmit-operator.md)
* [SparkSSHSubmit operator](/akamas-docs/3.6/reference/workflow-operators/sparksshsubmit-operator.md)
* [SparkLivy Operator](/akamas-docs/3.6/reference/workflow-operators/sparklivy-operator.md)

## Components configuration

Akamas uses components to identify specific elements of the system to be monitored and optimized. Your system might contain multiple components to model, for example, a Spark application and each host of the cluster. To point Akamas to the right component when extracting metrics you need to add a property called `sparkApplication` to your Spark Application component. The provider will only extract metrics for components for which this property has been specified.

```yaml
name: My Application
properties:
 sparkApplication: "true"
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.akamas.io/akamas-docs/3.6/integrating/integrating-telemetry-providers/spark-history-server-provider.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
