-
Notifications
You must be signed in to change notification settings - Fork 117
Bumping up kubernetes-client version to fix GKE and local proxy #105
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -51,7 +51,7 @@ connect without SSL on a different port, the master would be set to `k8s://http: | |
|
|
||
| Note that applications can currently only be executed in cluster mode, where the driver and its executors are running on | ||
| the cluster. | ||
|
|
||
| ### Adding Other JARs | ||
|
|
||
| Spark allows users to provide dependencies that are bundled into the driver's Docker image, or that are on the local | ||
|
|
@@ -150,6 +150,28 @@ or `container:`. A scheme of `file:` corresponds to the keyStore being located o | |
| the driver container as a [secret volume](https://kubernetes.io/docs/user-guide/secrets/). When the URI has the scheme | ||
| `container:`, the file is assumed to already be on the container's disk at the appropriate path. | ||
|
|
||
| ### Kubernetes Clusters and the authenticated proxy endpoint | ||
|
|
||
| Spark-submit also supports submission through the | ||
| local kubectl proxy](https://kubernetes.io/docs/user-guide/connecting-to-applications-proxy/). One can use the | ||
| authenticating proxy to communicate with the api server directly without passing credentials to spark-submit. | ||
| For example, if our local proxy were listening on port 8001, we would have our submission looking like the following: | ||
|
|
||
| bin/spark-submit \ | ||
| --deploy-mode cluster \ | ||
| --class org.apache.spark.examples.SparkPi \ | ||
| --master k8s://http://127.0.0.1:8001 \ | ||
| --kubernetes-namespace default \ | ||
| --conf spark.executor.instances=5 \ | ||
| --conf spark.app.name=spark-pi \ | ||
| --conf spark.kubernetes.driver.docker.image=registry-host:5000/spark-driver:latest \ | ||
| --conf spark.kubernetes.executor.docker.image=registry-host:5000/spark-executor:latest \ | ||
| examples/jars/spark_examples_2.11-2.2.0.jar | ||
|
|
||
| This mechanism can also be useful when we have authentication schemes that the client library does not support | ||
|
||
| completely. | ||
|
|
||
|
|
||
| ### Spark Properties | ||
|
|
||
| Below are some other common properties that are specific to Kubernetes. Most of the other configurations are the same | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,7 +29,7 @@ | |
| <name>Spark Project Kubernetes</name> | ||
| <properties> | ||
| <sbt.project.name>kubernetes</sbt.project.name> | ||
| <kubernetes.client.version>1.4.34</kubernetes.client.version> | ||
| <kubernetes.client.version>2.0.3</kubernetes.client.version> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this crosses a 2.0 boundary -- any backcompat breaks to be worried about? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Where are release notes for this library? I'm having trouble finding them
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. None as far as I've checked. It looks like they just chose a sudden version jump a few days ago: https://github.com/fabric8io/kubernetes-client/releases?after=kubernetes-client-2.0.0.fuse-000002 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like some packages moved around related to Jobs, but we don't use those so it didn't affect us. |
||
| </properties> | ||
|
|
||
| <dependencies> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mention the command to start the local proxy