spark-hs

by Helm

Helm chartv0.2.4

A Helm chart for Spark HS in Kubernetes

About this chart

Spark History Server Chart

SHS Spark History Server is the web UI for completed and running (aka incomplete) Spark applications. It is an extension of Spark’s web UI.

Chart Details

Installing the Chart

To install the chart:

$ helm install --set app.logDirectory=yourBucketName/eventLogFoloder,app.cloudProvider=amazon banzaicloud-stable/spark-hs

Configuration

The following tables lists the configurable parameters of the Spark History Sever chart and their default values.

ParameterRequiredDescriptionExample
sparkEventLogStorage.logDirectoryyesthe URL to the directory containing application event logs to loadyourBucketName/eventLogFoloder
sparkEventLogStorage.cloudProvideryesthe cloud provider where the objectstore/bucket locatedamazongoogleazureoraclealibaba
sparkEventLogStorage.secretNamenothe name of K8s secret containing credentials for selected cloud provider. If no secretName is passed then there will be a secret created with the same structure populated from values. Checkout the required secret properties for each provider in next section below.see below
sparkEventLogStorage.endpointnothe URL to the s3 endpoint you would like to read from (only valid for amazon cloudProvider)http://172.1.1.1:9000

Structure of credential secret for each supported cloud provider

Amazon

AWS_ACCESS_KEY_ID: {{ .Values.sparkEventLogStorage.awsAccessKeyId | b64enc | quote }}
AWS_SECRET_ACCESS_KEY: {{ .Values.sparkEventLogStorage.awsSecretAccessKey | b64enc | quote }}

Azure

storageAccount: {{ .Values.sparkEventLogStorage.azureStorageAccountName | b64enc | quote }}
accessKey: {{ .Values.sparkEventLogStorage.azureStorageAccessKey | b64enc | quote }}

Alibaba

ALIBABA_ACCESS_KEY_ID: {{ .Values.sparkEventLogStorage.aliAccessKeyId | b64enc | quote }}
ALIBABA_ACCESS_KEY_SECRET: {{ .Values.sparkEventLogStorage.aliSecretAccessKey | b64enc | quote }}

Google

google.json: {{ .Values.sparkEventLogStorage.googleJson | quote }}

Oracle

api_key: {{ .Values.sparkEventLogStorage.apiKey | b64enc | quote }}
tenancy_ocid: {{ .Values.sparkEventLogStorage.oracleTenancyId | b64enc | quote }}
user_ocid:  {{ .Values.sparkEventLogStorage.oracleUserId | b64enc | quote }}
api_key_fingerprint:  {{ .Values.sparkEventLogStorage.oracleApiKeyFingerprint | b64enc | quote }}

Deploy spark-hs with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has spark-hs on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartspark-hs is pinned at v0.2.4 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply