From cb9063076e4e87e50b4e3a84ebfa61d09bab5619 Mon Sep 17 00:00:00 2001 From: Dongjoon Hyun Date: Mon, 26 Aug 2024 11:31:21 -0700 Subject: [PATCH] [SPARK-49397] Add `Clean Up` section to `README.md` --- README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/README.md b/README.md index a4d89f2e..e9cdee72 100644 --- a/README.md +++ b/README.md @@ -117,6 +117,33 @@ $ helm install spark-kubernetes-operator \ https://nightlies.apache.org/spark/charts/spark-kubernetes-operator-0.1.0-SNAPSHOT.tgz ``` +## Clean Up + +Check the existing Spark applications and clusters. If exists, delete them. + +``` +$ kubectl get sparkapp +No resources found in default namespace. + +$ kubectl get sparkcluster +No resources found in default namespace. +``` + +Remove HelmChart and CRDs. + +``` +$ helm uninstall spark-kubernetes-operator + +$ kubectl delete crd sparkapplications.spark.apache.org + +$ kubectl delete crd sparkclusters.spark.apache.org +``` + +In case of nightly builds, remove the snapshot image. +``` +$ docker rmi apache/spark-kubernetes-operator:main-snapshot +``` + ## Contributing Please review the [Contribution to Spark guide](https://spark.apache.org/contributing.html)