Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
11 changes: 11 additions & 0 deletions core/src/main/scala/org/apache/spark/internal/config/Deploy.scala
Original file line number Diff line number Diff line change
Expand Up @@ -19,48 +19,59 @@ package org.apache.spark.internal.config

private[spark] object Deploy {
val RECOVERY_MODE = ConfigBuilder("spark.deploy.recoveryMode")
.version("0.8.1")
Copy link
Contributor Author

@beliefer beliefer Feb 24, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No JIRA ID, commit ID: d66c01f

.stringConf
.createWithDefault("NONE")

val RECOVERY_MODE_FACTORY = ConfigBuilder("spark.deploy.recoveryMode.factory")
.version("1.2.0")
Copy link
Contributor Author

@beliefer beliefer Feb 24, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SPARK-1830 commit ID: deefd9d
This configuration appears in branch-1.3, but the version number in the pom.xml file corresponding to the commit is 1.2.0-SNAPSHOT

.stringConf
.createWithDefault("")

val RECOVERY_DIRECTORY = ConfigBuilder("spark.deploy.recoveryDirectory")
.version("0.8.1")
Copy link
Contributor Author

@beliefer beliefer Feb 24, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No JIRA ID, commit ID: d66c01f

.stringConf
.createWithDefault("")

val ZOOKEEPER_URL = ConfigBuilder("spark.deploy.zookeeper.url")
.doc(s"When `${RECOVERY_MODE.key}` is set to ZOOKEEPER, this " +
"configuration is used to set the zookeeper URL to connect to.")
.version("0.8.1")
Copy link
Contributor Author

@beliefer beliefer Feb 24, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No JIRA ID, commit ID: d66c01f

.stringConf
.createOptional

val ZOOKEEPER_DIRECTORY = ConfigBuilder("spark.deploy.zookeeper.dir")
.version("0.8.1")
Copy link
Contributor Author

@beliefer beliefer Feb 24, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No JIRA ID, commit ID: d66c01f

.stringConf
.createOptional

val RETAINED_APPLICATIONS = ConfigBuilder("spark.deploy.retainedApplications")
.version("0.8.0")
Copy link
Contributor Author

@beliefer beliefer Feb 24, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No JIRA ID, commit ID: 46eecd1

.intConf
.createWithDefault(200)

val RETAINED_DRIVERS = ConfigBuilder("spark.deploy.retainedDrivers")
.version("1.1.0")
Copy link
Contributor Author

@beliefer beliefer Feb 24, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No JIRA ID, commit ID: 7446f5f

.intConf
.createWithDefault(200)

val REAPER_ITERATIONS = ConfigBuilder("spark.dead.worker.persistence")
.version("0.8.0")
Copy link
Contributor Author

@beliefer beliefer Feb 24, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No JIRA ID, commit ID: 46eecd1

.intConf
.createWithDefault(15)

val MAX_EXECUTOR_RETRIES = ConfigBuilder("spark.deploy.maxExecutorRetries")
.version("1.6.3")
Copy link
Contributor Author

@beliefer beliefer Feb 24, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SPARK-16956, commit ID: ace458f

.intConf
.createWithDefault(10)

val SPREAD_OUT_APPS = ConfigBuilder("spark.deploy.spreadOut")
.version("0.6.1")
Copy link
Contributor Author

@beliefer beliefer Feb 24, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No JIRA ID, commit ID: bb2b9ff

.booleanConf
.createWithDefault(true)

val DEFAULT_CORES = ConfigBuilder("spark.deploy.defaultCores")
.version("0.9.0")
Copy link
Contributor Author

@beliefer beliefer Feb 24, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No JIRA ID, commit ID: d8bcc8e

.intConf
.createWithDefault(Int.MaxValue)

Expand Down
5 changes: 4 additions & 1 deletion docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -2597,22 +2597,25 @@ Spark subsystems.
### Deploy

<table class="table">
<tr><th>Property Name</th><th>Default</th><th>Meaning</th></tr>
<tr><th>Property Name</th><th>Default</th><th>Meaning</th><th>Since Version</th></tr>
<tr>
<td><code>spark.deploy.recoveryMode</code></td>
<td>NONE</td>
<td>The recovery mode setting to recover submitted Spark jobs with cluster mode when it failed and relaunches.
This is only applicable for cluster mode when running with Standalone or Mesos.</td>
<td>0.8.1</td>
</tr>
<tr>
<td><code>spark.deploy.zookeeper.url</code></td>
<td>None</td>
<td>When `spark.deploy.recoveryMode` is set to ZOOKEEPER, this configuration is used to set the zookeeper URL to connect to.</td>
<td>0.8.1</td>
</tr>
<tr>
<td><code>spark.deploy.zookeeper.dir</code></td>
<td>None</td>
<td>When `spark.deploy.recoveryMode` is set to ZOOKEEPER, this configuration is used to set the zookeeper directory to store recovery state.</td>
<td>0.8.1</td>
</tr>
</table>

Expand Down