from typing import Dict
from typing import Any
import requests


def get_cluster_status() -> Dict[str, Any]:
    """
    Returns the Spark cluster status
    :return: Dict[str, Any]
    """
    spark_status_url = "http://localhost:8080/json/"
    r = requests.get(url=spark_status_url)
    return r.json()