data-processing/hm-spark/applications/spark-pi/Makefile
spark-submit-to-kubernetes-cluster:
spark-submit \
--master=k8s://https://127.0.0.1:6443 \
--deploy-mode=cluster \
--name=spark-pi \
--class=org.apache.spark.examples.SparkPi \
--conf=spark.kubernetes.driverEnv.SPARK_MASTER_URL=spark://spark-master-svc.hm-spark.svc:7077 \
--conf=spark.kubernetes.namespace=hm-spark \
--conf=spark.kubernetes.container.image=docker.io/bitnami/spark:3.4.0-debian-11-r1 \
local:///opt/bitnami/spark/examples/jars/spark-examples_2.12-3.4.0.jar
kubectl-delete-spark-applications-in-kubernetes-cluster:
kubectl delete pods --namespace=hm-spark --selector=spark-app-name=spark-pi