Spark kubernetes driver image with support for Azure storage, SQL server/warehouse and spark-avro
1.0K
Steps to compile Apache Spark to create a docker image runnable on kubernetes with
Just run
bash <(curl -s https://raw.githubusercontent.com/dharmeshkakadia/k8s-azure-spark/master/spark-image.sh)
kubectl run test12 --image dharmeshkakadia/spark:latest -i --tty --command bash
bin/spark-submit \
--deploy-mode cluster \
--class org.apache.spark.examples.SparkPi \
--master k8s://http://127.0.0.1:8001/ \
--conf spark.executor.instances=5 \
--conf spark.app.name=spark-pi-my2 \
--conf spark.kubernetes.container.image=dharmeshkakadia/spark:latest \
--jars local:///opt/spark/examples/jars/spark-examples_2.11-2.4.0-SNAPSHOT.jar \
local:///opt/spark/examples/jars/spark-examples_2.11-2.4.0-SNAPSHOT.jar
bin/spark-submit \
--deploy-mode cluster \
--class org.apache.spark.examples.JavaWordCount \
--master k8s://http://127.0.0.1:8001/ \
--conf spark.executor.instances=2 \
--conf spark.app.name=spark-wc-wasb \
--conf spark.kubernetes.container.image=dharmeshkakadia/spark:latest \
--conf spark.hadoop.fs.azure.account.key.<YOUR_ACCOUNT_KEY>.blob.core.windows.net=4tZV+I55A== \
--jars local:///opt/spark/examples/jars/spark-examples_2.11-2.4.0-SNAPSHOT.jar \
local:///opt/spark/examples/jars/spark-examples_2.11-2.4.0-SNAPSHOT.jar wasb://<YOUR_STORAGE_CONTAINER_NAME>@<YOUR_STORAGE_ACCOUNT>.blob.core.windows.net/<PATH>
Content type
Image
Digest
Size
277.2 MB
Last updated
almost 8 years ago
docker pull dharmeshkakadia/k8s-azure-spark