Created
March 14, 2020 20:30
-
-
Save damianknopp/59bc857653f8168c21e5f7d2622e1197 to your computer and use it in GitHub Desktop.
livy-sparkpi.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -k -H 'Content-Type: application/json' -X POST -d '{ | |
"conf": { | |
"spark.kubernetes.container.image.pullPolicy": "Always", | |
"spark.kubernetes.authenticate.driver.serviceAccountName": "default" | |
}, | |
"file": "local:///opt/spark/examples/jars/spark-examples_2.11-2.4.5.jar", | |
"className": "org.apache.spark.examples.SparkPi" | |
}' http://<ip>:<port>/batches |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment