Skip to content
This repository was archived by the owner on Jan 9, 2020. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
7570eab
[SPARK-22788][STREAMING] Use correct hadoop config for fs append supp…
Dec 20, 2017
7798c9e
[SPARK-22824] Restore old offset for binary compatibility
jose-torres Dec 20, 2017
d762d11
[SPARK-22832][ML] BisectingKMeans unpersist unused datasets
zhengruifeng Dec 20, 2017
c89b431
[SPARK-22849] ivy.retrieve pattern should also consider `classifier`
gatorsmile Dec 20, 2017
792915c
[SPARK-22830] Scala Coding style has been improved in Spark Examples
chetkhatri Dec 20, 2017
b176014
[SPARK-22847][CORE] Remove redundant code in AppStatusListener while …
Ngone51 Dec 20, 2017
0114c89
[SPARK-22845][SCHEDULER] Modify spark.kubernetes.allocation.batch.del…
foxish Dec 21, 2017
fb0562f
[SPARK-22810][ML][PYSPARK] Expose Python API for LinearRegression wit…
yanboliang Dec 21, 2017
9c289a5
[SPARK-22387][SQL] Propagate session configs to data source read/writ…
jiangxb1987 Dec 21, 2017
d3ae3e1
[SPARK-19634][SQL][ML][FOLLOW-UP] Improve interface of dataframe vect…
WeichenXu123 Dec 21, 2017
cb9fc8d
[SPARK-22848][SQL] Eliminate mutable state from Stack
kiszk Dec 21, 2017
59d5263
[SPARK-22324][SQL][PYTHON] Upgrade Arrow to 0.8.0
BryanCutler Dec 21, 2017
0abaf31
[SPARK-22852][BUILD] Exclude -Xlint:unchecked from sbt javadoc flags
easel Dec 21, 2017
4c2efde
[SPARK-22855][BUILD] Add -no-java-comments to sbt docs/scalacOptions
easel Dec 21, 2017
8a0ed5a
[SPARK-22668][SQL] Ensure no global variables in arguments of method …
cloud-fan Dec 21, 2017
d3a1d95
[SPARK-22786][SQL] only use AppStatusPlugin in history server
cloud-fan Dec 21, 2017
4e107fd
[SPARK-22822][TEST] Basic tests for WindowFrameCoercion and DecimalPr…
wangyum Dec 21, 2017
fe65361
[SPARK-22042][FOLLOW-UP][SQL] ReorderJoinPredicates can break when ch…
tejasapatil Dec 21, 2017
7beb375
[SPARK-22861][SQL] SQLAppStatusListener handles multi-job executions.
squito Dec 21, 2017
7ab165b
[SPARK-22648][K8S] Spark on Kubernetes - Documentation
foxish Dec 22, 2017
c0abb1d
[SPARK-22854][UI] Read Spark version from event logs.
Dec 22, 2017
c6f01ca
[SPARK-22750][SQL] Reuse mutable states when possible
mgaido91 Dec 22, 2017
a36b78b
[SPARK-22450][CORE][MLLIB][FOLLOWUP] safely register class for mllib …
zhengruifeng Dec 22, 2017
22e1849
[SPARK-22866][K8S] Fix path issue in Kubernetes dockerfile
foxish Dec 22, 2017
8df1da3
[SPARK-22862] Docs on lazy elimination of columns missing from an enc…
marmbrus Dec 22, 2017
13190a4
[SPARK-22874][PYSPARK][SQL] Modify checking pandas version to use Loo…
ueshin Dec 22, 2017
d23dc5b
[SPARK-22346][ML] VectorSizeHint Transformer for using VectorAssemble…
MrBago Dec 22, 2017
d3cbbdd
[SPARK-22757][Kubernetes] Enable use of remote dependencies in Kubern…
liyinan926 Dec 12, 2017
5d2cbc8
Addressed first round of comments
liyinan926 Dec 15, 2017
4ee76af
Addressed the second round of comments
liyinan926 Dec 16, 2017
9c8051a
Create one task per jar/file to download in the init-container
liyinan926 Dec 16, 2017
1f65417
More review comments
liyinan926 Dec 18, 2017
109ad80
Shorten variable names
liyinan926 Dec 19, 2017
c21fdcf
Removed traits that have only a single implementation
liyinan926 Dec 19, 2017
a3cd71d
Remove unused class arguments
liyinan926 Dec 19, 2017
23c5cd9
Improved documentation
liyinan926 Dec 19, 2017
2ec15c4
Addressed latest round of comments
liyinan926 Dec 20, 2017
5d1f889
Addressed more comments
liyinan926 Dec 21, 2017
9d9c841
Updated names of two configuration properties
liyinan926 Dec 22, 2017
c51bc56
Addressed more comments
liyinan926 Dec 25, 2017
28343fb
Addressed one more comment
liyinan926 Dec 26, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Improved documentation
  • Loading branch information
liyinan926 committed Dec 23, 2017
commit 23c5cd9afe8765c322ec10c3d9f5057aeca2e7b7
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ import org.apache.spark.deploy.k8s.Config._
import org.apache.spark.deploy.k8s.Constants._

/**
* This is separated out from the init-container steps API because this component can be reused to
* set up the init-container for executors as well.
* Bootstraps an init-container for downloading remote dependencies. This is separated out from
* the init-container steps API because this component can be used to bootstrap init-containers
* for both the driver and executors.
*/
private[spark] class InitContainerBootstrap(
initContainerImage: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ import org.apache.spark.util.Utils
* Figures out and returns the complete ordered list of needed DriverConfigurationSteps to
* configure the Spark driver pod. The returned steps will be applied one by one in the given
* order to produce a final KubernetesDriverSpec that is used in KubernetesClientApplication
* to construct and create the driver pod.
* to construct and create the driver pod. It uses the InitContainerConfigOrchestrator to
* configure the driver init-container if one is needed, i.e., when there are remote dependencies
* to localize.
*/
private[spark] class DriverConfigOrchestrator(
kubernetesAppId: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import org.apache.spark.deploy.k8s.submit.KubernetesDriverSpec
import org.apache.spark.internal.config.{DRIVER_CLASS_PATH, DRIVER_MEMORY, DRIVER_MEMORY_OVERHEAD}

/**
* Represents the initial setup required for the driver.
* Performs basic configuration for the driver pod.
*/
private[spark] class BaseDriverConfigurationStep(
kubernetesAppId: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package org.apache.spark.deploy.k8s.submit.steps
import org.apache.spark.deploy.k8s.submit.KubernetesDriverSpec

/**
* Represents a step in preparing the Kubernetes driver.
* Represents a step in configuring the Spark driver pod.
*/
private[spark] trait DriverConfigurationStep {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ import org.apache.spark.deploy.k8s.submit.{InitContainerUtil, KubernetesDriverSp
import org.apache.spark.deploy.k8s.submit.steps.initcontainer.{InitContainerConfigurationStep, InitContainerSpec}

/**
* Configures the init-container that bootstraps dependencies into the driver pod, including
* building a ConfigMap that will be mounted into the init-container. The ConfigMap carries
* Configures the driver init-container that localizes remote dependencies into the driver pod.
* It applies the given InitContainerConfigurationSteps in the given order to produce a final
* InitContainerSpec that is then used to configure the driver pod with the init-container attached.
* It also builds a ConfigMap that will be mounted into the init-container. The ConfigMap carries
* configuration properties for the init-container.
*/
private[spark] class DriverInitContainerBootstrapStep(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ import org.apache.spark.deploy.k8s.{InitContainerBootstrap, PodWithDetachedInitC
import org.apache.spark.deploy.k8s.Config._
import org.apache.spark.deploy.k8s.submit.KubernetesFileUtils

/**
* Performs basic configuration for the driver init-container with most of the work delegated to
* the given InitContainerBootstrap.
*/
private[spark] class BaseInitContainerConfigurationStep(
sparkJars: Seq[String],
sparkFiles: Seq[String],
Expand Down Expand Up @@ -47,6 +51,7 @@ private[spark] class BaseInitContainerConfigurationStep(
FILES_DOWNLOAD_LOCATION.key -> filesDownloadPath) ++
remoteJarsConf ++
remoteFilesConf

val bootstrapped = bootstrap.bootstrapInitContainer(
PodWithDetachedInitContainer(
spec.driverPod,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ import org.apache.spark.deploy.k8s.Constants._

/**
* Figures out and returns the complete ordered list of InitContainerConfigurationSteps required to
* configure an init-container. The returned steps will be applied in the given order to produce a
* final InitContainerSpec that is used to construct an init-container. This is only used when an
* init-container is needed, i.e., when there are remote application dependencies to localize.
* configure the driver init-container. The returned steps will be applied in the given order to
* produce a final InitContainerSpec that is used to construct the driver init-container in
* DriverInitContainerBootstrapStep. This class is only used when an init-container is needed, i.e.,
* when there are remote application dependencies to localize.
*/
private[spark] class InitContainerConfigOrchestrator(
sparkJars: Seq[String],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
package org.apache.spark.deploy.k8s.submit.steps.initcontainer

/**
* Represents a step in configuring the init-container for the driver and executors.
* Represents a step in configuring the driver init-container.
*/
private[spark] trait InitContainerConfigurationStep {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,18 @@ import org.apache.spark.internal.config.{EXECUTOR_CLASS_PATH, EXECUTOR_JAVA_OPTI
import org.apache.spark.util.Utils

/**
* A factory class for configuring and creating executor pods.
* A factory class for bootstrapping and creating executor pods with the given bootstrapping
* components.
*
* @param sparkConf Spark configuration
* @param mountSecretsBootstrap an optional component for mounting user-specified secrets onto
* user-specified paths into the executor container
* @param initContainerBootstrap an optional component for bootstrapping the executor init-container
* if one is needed, i.e., when there are remote dependencies to
* localize
* @param initContainerMountSecretsBootstrap an optional component for mounting user-specified
* secrets onto user-specified paths into the executor
* init-container
*/
private[spark] class ExecutorPodFactory(
sparkConf: SparkConf,
Expand Down