Assuming that local kubernetes is running, along with tiller
$ helm repo add incubator http://storage.googleapis.com/kubernetes-charts-incubator
$ helm install --name spark incubator/sparkoperator --set sparkJobNamespace=default --set enableWebhook=true --set webhookPort=443
$ ./gradlew build
$ docker build -t=sample-spark-job-image .
kubectl apply -f spark-operator-submit.yaml
kubectl port-forward service/spark-pi-custom-ui-svc 4040:4040
Note that name of application = spark-pi-custom in above example. It is set under metadata.name under spark-operator-submit.yaml
kubectl describe sparkapplication spark-pi-custom
kubectl delete sparkapplication spark-pi-custom
helm del spark --purge
helm install --name kafka bitnami/kafka --set deleteTopicEnable=true
kubectl exec -ti kafka-0 -- kafka-console-producer.sh --topic word-count-input --broker-list localhost:9092
kubectl exec -ti kafka-0 -- kafka-console-consumer.sh --topic word-count-input --bootstrap-server localhost:9092