Skip to content

Conversation

@dongjoon-hyun
Copy link
Member

@dongjoon-hyun dongjoon-hyun commented Jun 13, 2025

What changes were proposed in this pull request?

This PR aims to add Swift-based SparkPi K8s CronJob example.

Why are the changes needed?

To provide a working example with

Does this PR introduce any user-facing change?

No behavior change because this is a new example.

How was this patch tested?

Manual tests.

# Install Spark K8s Operator
$ helm install spark spark/spark-kubernetes-operator

# Launch Spark 4.0 Connect Server
$ kubectl apply -f examples/spark-connect-server.yaml

# Launch `Swift-based SparkPi` Application
$ kubectl  apply -f examples/job/cron-pi-swift.yaml

$ kubectl get cronjob
NAME                     SCHEDULE    TIMEZONE   SUSPEND   ACTIVE   LAST SCHEDULE   AGE
spark-connect-swift-pi   * * * * *   <none>     False     1        2s              7m51s

$ kubectl get pod -l job-name
NAME                                    READY   STATUS      RESTARTS   AGE
spark-connect-swift-pi-29163859-mkh5p   0/1     Completed   0          2m31s
spark-connect-swift-pi-29163860-btc66   0/1     Completed   0          91s
spark-connect-swift-pi-29163861-68mmt   0/1     Completed   0          31s

Was this patch authored or co-authored using generative AI tooling?

No.

@dongjoon-hyun
Copy link
Member Author

Thank you, @viirya .

@dongjoon-hyun
Copy link
Member Author

Merged to main.

@dongjoon-hyun dongjoon-hyun deleted the SPARK-52471 branch June 13, 2025 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants