This is an automated email from the ASF dual-hosted git repository.

dongjoon pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/spark-kubernetes-operator.git


The following commit(s) were added to refs/heads/main by this push:
     new a6e837d  [SPARK-53663] Add `spark-history-server-preview.yaml`
a6e837d is described below

commit a6e837d8ed5b3548e87116b77e75c306dac95282
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Mon Sep 22 11:28:42 2025 -0700

    [SPARK-53663] Add `spark-history-server-preview.yaml`
    
    ### What changes were proposed in this pull request?
    
    Add `Spark History Server 4.1.0-preview` example 
(`spark-history-server-preview.yaml`)
    
    ### Why are the changes needed?
    
    To allow users to use `Apache Spark 4.1.0` history server easily.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No.
    
    ### How was this patch tested?
    
    Manual review.
    
    ```
    $ kubectl apply -f localstack.yml
    ```
    
    ```
    kubectl apply -f pi-with-eventlog.yaml
    ```
    
    ```
    $ kubectl apply -f spark-history-server-preview.yaml
    ```
    
    <img width="509" height="381" alt="Screenshot 2025-09-22 at 11 20 46" 
src="https://github.com/user-attachments/assets/889d8378-4ccb-4753-ab15-0cc26ae7e9e7";
 />
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    No.
    
    Closes #330 from dongjoon-hyun/SPARK-53663.
    
    Authored-by: Dongjoon Hyun <[email protected]>
    Signed-off-by: Dongjoon Hyun <[email protected]>
---
 examples/spark-history-server-preview.yaml | 43 ++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

diff --git a/examples/spark-history-server-preview.yaml 
b/examples/spark-history-server-preview.yaml
new file mode 100644
index 0000000..73892b6
--- /dev/null
+++ b/examples/spark-history-server-preview.yaml
@@ -0,0 +1,43 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+apiVersion: spark.apache.org/v1
+kind: SparkApplication
+metadata:
+  name: spark-history-server
+spec:
+  mainClass: "org.apache.spark.deploy.history.HistoryServer"
+  sparkConf:
+    spark.jars.packages: "org.apache.hadoop:hadoop-aws:3.4.1"
+    spark.jars.ivy: "/tmp/.ivy2.5.2"
+    spark.driver.memory: "2g"
+    spark.kubernetes.authenticate.driver.serviceAccountName: "spark"
+    spark.kubernetes.container.image: 
"apache/spark:4.1.0-preview1-java21-scala"
+    spark.ui.port: "18080"
+    spark.history.fs.logDirectory: "s3a://spark-events"
+    spark.history.fs.cleaner.enabled: "true"
+    spark.history.fs.cleaner.maxAge: "30d"
+    spark.history.fs.cleaner.maxNum: "100"
+    spark.history.fs.eventLog.rolling.maxFilesToRetain: "10"
+    spark.hadoop.fs.defaultFS: "s3a://spark-events"
+    spark.hadoop.fs.s3a.endpoint: "http://localstack:4566";
+    spark.hadoop.fs.s3a.path.style.access: "true"
+    spark.hadoop.fs.s3a.access.key: "test"
+    spark.hadoop.fs.s3a.secret.key: "test"
+  runtimeVersions:
+    sparkVersion: "4.1.0-preview1"
+  applicationTolerations:
+    restartConfig:
+      restartPolicy: Always
+      maxRestartAttempts: 9223372036854775807


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to