You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by do...@apache.org on 2025/05/24 18:36:01 UTC
(spark-kubernetes-operator) branch main updated: [SPARK-52295] Add `pi-v1alpha1.yaml` example
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 b640ca5 [SPARK-52295] Add `pi-v1alpha1.yaml` example
b640ca5 is described below
commit b640ca5519c7934484a39496d86a2dc0b2f866c6
Author: Dongjoon Hyun <do...@apache.org>
AuthorDate: Sat May 24 11:35:55 2025 -0700
[SPARK-52295] Add `pi-v1alpha1.yaml` example
### What changes were proposed in this pull request?
This PR aims to add `pi-v1alpha1.yaml` example.
```bash
$ diff examples/pi.yaml examples/pi-v1alpha1.yaml
15c15
< apiVersion: spark.apache.org/v1beta1
---
> apiVersion: spark.apache.org/v1alpha1
18c18
< name: pi
---
> name: pi-v1alpha1
```
### Why are the changes needed?
To give an example to support old versions.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Manual review because this is an example.
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #225 from dongjoon-hyun/SPARK-52295.
Authored-by: Dongjoon Hyun <do...@apache.org>
Signed-off-by: Dongjoon Hyun <do...@apache.org>
---
examples/pi-v1alpha1.yaml | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/examples/pi-v1alpha1.yaml b/examples/pi-v1alpha1.yaml
new file mode 100644
index 0000000..065225d
--- /dev/null
+++ b/examples/pi-v1alpha1.yaml
@@ -0,0 +1,32 @@
+# 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/v1alpha1
+kind: SparkApplication
+metadata:
+ name: pi-v1alpha1
+spec:
+ mainClass: "org.apache.spark.examples.SparkPi"
+ jars: "local:///opt/spark/examples/jars/spark-examples.jar"
+ sparkConf:
+ spark.dynamicAllocation.enabled: "true"
+ spark.dynamicAllocation.shuffleTracking.enabled: "true"
+ spark.dynamicAllocation.maxExecutors: "3"
+ spark.kubernetes.authenticate.driver.serviceAccountName: "spark"
+ spark.kubernetes.container.image: "apache/spark:4.0.0"
+ applicationTolerations:
+ resourceRetainPolicy: OnFailure
+ runtimeVersions:
+ scalaVersion: "2.13"
+ sparkVersion: "4.0.0"
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org