Skip to content

Commit 0f6011c

Browse files
committed
[SPARK-49397] Add Clean Up section to README.md
### What changes were proposed in this pull request? This PR aims to document `Clean Up` steps in `README.md` . ### Why are the changes needed? It's helpful for users to provide clean-up steps explicitly because this is always used during trouble-shooting. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Manual review. ### Was this patch authored or co-authored using generative AI tooling? No. Closes apache#106 from dongjoon-hyun/SPARK-49397. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent 80934a8 commit 0f6011c

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,33 @@ $ helm install spark-kubernetes-operator \
117117
https://nightlies.apache.org/spark/charts/spark-kubernetes-operator-0.1.0-SNAPSHOT.tgz
118118
```
119119

120+
## Clean Up
121+
122+
Check the existing Spark applications and clusters. If exists, delete them.
123+
124+
```
125+
$ kubectl get sparkapp
126+
No resources found in default namespace.
127+
128+
$ kubectl get sparkcluster
129+
No resources found in default namespace.
130+
```
131+
132+
Remove HelmChart and CRDs.
133+
134+
```
135+
$ helm uninstall spark-kubernetes-operator
136+
137+
$ kubectl delete crd sparkapplications.spark.apache.org
138+
139+
$ kubectl delete crd sparkclusters.spark.apache.org
140+
```
141+
142+
In case of nightly builds, remove the snapshot image.
143+
```
144+
$ docker rmi apache/spark-kubernetes-operator:main-snapshot
145+
```
146+
120147
## Contributing
121148

122149
Please review the [Contribution to Spark guide](https://spark.apache.org/contributing.html)

0 commit comments

Comments
 (0)