We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
sparkapps.sh
kubectl delete --all
1 parent 06a9518 commit ceaa769Copy full SHA for ceaa769
tests/benchmark/sparkapps.sh
@@ -19,7 +19,7 @@
19
20
# 1. Clear the existing CRDs before staring the benchmark
21
echo "CLEAN UP NAMESPACE FOR BENCHMARK"
22
-kubectl get sparkapplications.spark.apache.org -o name | xargs kubectl delete
+kubectl delete sparkapplications.spark.apache.org --all
23
24
NUM="${1:-1000}"
25
echo "START BENCHMARK WITH $NUM JOBS"
@@ -62,7 +62,7 @@ echo "FINISHED $NUM JOBS IN $completionTime SECONDS."
62
63
# 3. Deletion Benchmark
64
start=`date +%s`
65
-kubectl get sparkapplications.spark.apache.org -o name | xargs kubectl delete > /dev/null
+kubectl delete sparkapplications.spark.apache.org --all > /dev/null
66
end=`date +%s`
67
deletionTime=$((end - start))
68
echo "DELETED $NUM JOBS IN $deletionTime SECONDS."
0 commit comments