-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-22757][Kubernetes] Enable use of remote dependencies (http, s3, gcs, etc.) in Kubernetes mode #19954
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
[SPARK-22757][Kubernetes] Enable use of remote dependencies (http, s3, gcs, etc.) in Kubernetes mode #19954
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
d3cbbdd
[SPARK-22757][Kubernetes] Enable use of remote dependencies in Kubern…
liyinan926 5d2cbc8
Addressed first round of comments
liyinan926 4ee76af
Addressed the second round of comments
liyinan926 9c8051a
Create one task per jar/file to download in the init-container
liyinan926 1f65417
More review comments
liyinan926 109ad80
Shorten variable names
liyinan926 c21fdcf
Removed traits that have only a single implementation
liyinan926 a3cd71d
Remove unused class arguments
liyinan926 23c5cd9
Improved documentation
liyinan926 2ec15c4
Addressed latest round of comments
liyinan926 5d1f889
Addressed more comments
liyinan926 9d9c841
Updated names of two configuration properties
liyinan926 c51bc56
Addressed more comments
liyinan926 28343fb
Addressed one more comment
liyinan926 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Addressed the second round of comments
- Loading branch information
commit 4ee76afa3500a4315d3a62fb911f219c4f3a7cd7
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
27 changes: 0 additions & 27 deletions
27
...anagers/kubernetes/core/src/main/scala/org/apache/spark/deploy/rest/k8s/FileFetcher.scala
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,7 +20,7 @@ import org.apache.spark.{SparkConf, SparkFunSuite} | |
| import org.apache.spark.deploy.k8s.Config._ | ||
| import org.apache.spark.deploy.k8s.submit.steps._ | ||
|
|
||
| class DriverConfigurationStepsOrchestratorSuite extends SparkFunSuite { | ||
| class DriverConfigOrchestratorSuite extends SparkFunSuite { | ||
|
|
||
| private val NAMESPACE = "default" | ||
| private val DRIVER_IMAGE = "driver-image" | ||
|
|
@@ -38,7 +38,7 @@ class DriverConfigurationStepsOrchestratorSuite extends SparkFunSuite { | |
| val sparkConf = new SparkConf(false) | ||
| .set(DRIVER_CONTAINER_IMAGE, DRIVER_IMAGE) | ||
| val mainAppResource = JavaMainAppResource("local:///var/apps/jars/main.jar") | ||
| val orchestrator = new DriverConfigurationStepsOrchestrator( | ||
| val orchestrator = new DriverConfigOrchestrator( | ||
| NAMESPACE, | ||
| APP_ID, | ||
| LAUNCH_TIME, | ||
|
|
@@ -58,8 +58,13 @@ class DriverConfigurationStepsOrchestratorSuite extends SparkFunSuite { | |
|
|
||
| test("Base submission steps without a main app resource.") { | ||
| val sparkConf = new SparkConf(false) | ||
| <<<<<<< HEAD:resource-managers/kubernetes/core/src/test/scala/org/apache/spark/deploy/k8s/submit/DriverConfigurationStepsOrchestratorSuite.scala | ||
| .set(DRIVER_CONTAINER_IMAGE, DRIVER_IMAGE) | ||
| val orchestrator = new DriverConfigurationStepsOrchestrator( | ||
| ======= | ||
| .set(DRIVER_DOCKER_IMAGE, DRIVER_IMAGE) | ||
| val orchestrator = new DriverConfigOrchestrator( | ||
| >>>>>>> Addressed the second round of comments:resource-managers/kubernetes/core/src/test/scala/org/apache/spark/deploy/k8s/submit/DriverConfigOrchestratorSuite.scala | ||
| NAMESPACE, | ||
| APP_ID, | ||
| LAUNCH_TIME, | ||
|
|
@@ -78,11 +83,16 @@ class DriverConfigurationStepsOrchestratorSuite extends SparkFunSuite { | |
|
|
||
| test("Submission steps with an init-container.") { | ||
| val sparkConf = new SparkConf(false) | ||
| <<<<<<< HEAD:resource-managers/kubernetes/core/src/test/scala/org/apache/spark/deploy/k8s/submit/DriverConfigurationStepsOrchestratorSuite.scala | ||
| .set(DRIVER_CONTAINER_IMAGE, DRIVER_IMAGE) | ||
| .set(INIT_CONTAINER_DOCKER_IMAGE, INIT_CONTAINER_IMAGE) | ||
| ======= | ||
| .set(DRIVER_DOCKER_IMAGE, DRIVER_IMAGE) | ||
| .set(INIT_CONTAINER_IMAGE, INIT_CONTAINER_IMAGE) | ||
| >>>>>>> Addressed the second round of comments:resource-managers/kubernetes/core/src/test/scala/org/apache/spark/deploy/k8s/submit/DriverConfigOrchestratorSuite.scala | ||
| .set("spark.jars", "hdfs://localhost:9000/var/apps/jars/jar1.jar") | ||
| val mainAppResource = JavaMainAppResource("local:///var/apps/jars/main.jar") | ||
| val orchestrator = new DriverConfigurationStepsOrchestrator( | ||
| val orchestrator = new DriverConfigOrchestrator( | ||
| NAMESPACE, | ||
| APP_ID, | ||
| LAUNCH_TIME, | ||
|
|
@@ -106,7 +116,7 @@ class DriverConfigurationStepsOrchestratorSuite extends SparkFunSuite { | |
| .set(s"$KUBERNETES_DRIVER_SECRETS_PREFIX$SECRET_FOO", SECRET_MOUNT_PATH) | ||
| .set(s"$KUBERNETES_DRIVER_SECRETS_PREFIX$SECRET_BAR", SECRET_MOUNT_PATH) | ||
| val mainAppResource = JavaMainAppResource("local:///var/apps/jars/main.jar") | ||
| val orchestrator = new DriverConfigurationStepsOrchestrator( | ||
| val orchestrator = new DriverConfigOrchestrator( | ||
| NAMESPACE, | ||
| APP_ID, | ||
| LAUNCH_TIME, | ||
|
|
@@ -125,8 +135,8 @@ class DriverConfigurationStepsOrchestratorSuite extends SparkFunSuite { | |
| } | ||
|
|
||
| private def validateStepTypes( | ||
| orchestrator: DriverConfigurationStepsOrchestrator, | ||
| types: Class[_ <: DriverConfigurationStep]*): Unit = { | ||
| orchestrator: DriverConfigOrchestrator, | ||
| types: Class[_ <: DriverConfigurationStep]*): Unit = { | ||
|
||
| val steps = orchestrator.getAllConfigurationSteps() | ||
| assert(steps.size === types.size) | ||
| assert(steps.map(_.getClass) === types) | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
nit:
areAnyFilesNonContainerLocal->existNonContainerLocalFilesThere 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.
Done.