Docker image for running spark submit
50K+
This repository should provide a Dockerfile of the icpauloledo/spark-submit docker image, a deployment.yaml and cronjob.yaml with an example to show a simple way to run the spark-submit with Kubernetes.
*source:
It's really simple, follow the steps:
You can get this information running the command.
kubectl cluster-info|egrep master
Kubernetes master is running at https://api.k8s.my-k8.com # for example
- name: K8S_MASTER
value: k8s://https://api.k8s.my-k8.tech:443
$ kubectl create serviceaccount spark-submit
$ kubectl create clusterrolebinding spark-role --clusterrole=edit --serviceaccount=default:spark-submit --namespace=default
$ bash creating_service-account.sh
On the deployment.yaml and cronjob.yaml files you can see the --conf spark.kubernetes.authenticate.driver.serviceAccountName=spark-submit line.
Aaaand adios amigo, just run the kubectl create command and check if the spark-submit pod will be created. After some seconds you will se the the drive pod and then the executor pod.
kubectl create -f k8files/pod-cli.yaml
Thanks my friend @rodrigodelmonte - https://github.com/rodrigodelmonte for help me with the spark docker image
Content type
Image
Digest
Size
345.4 MB
Last updated
over 7 years ago
docker pull icpauloledo/spark-submit