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
2 changes: 2 additions & 0 deletions docs/core-migration-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ license: |

- Since Spark 3.2, `spark.storage.replication.proactive` is enabled by default which means Spark tries to replenish in case of the loss of cached RDD block replicas due to executor failures. To restore the behavior before Spark 3.2, you can set `spark.storage.replication.proactive` to `false`.

- In Spark 3.2, `spark.launcher.childConectionTimeout` is deprecated (typo) though still works. Use `spark.launcher.childConnectionTimeout` instead.

## Upgrading from Core 3.0 to 3.1

- In Spark 3.0 and below, `SparkContext` can be created in executors. Since Spark 3.1, an exception will be thrown when creating `SparkContext` in executors. You can allow it by setting the configuration `spark.executor.allowSparkContext` when creating `SparkContext` in executors.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,19 @@ public void run() {

private long getConnectionTimeout() {
String value = SparkLauncher.launcherConfig.get(SparkLauncher.CHILD_CONNECTION_TIMEOUT);
return (value != null) ? Long.parseLong(value) : DEFAULT_CONNECT_TIMEOUT;
if (value != null) {
return Long.parseLong(value);
}

value = SparkLauncher.launcherConfig.get(SparkLauncher.DEPRECATED_CHILD_CONNECTION_TIMEOUT);
if (value != null) {
LOG.log(Level.WARNING,
"Property '" + SparkLauncher.DEPRECATED_CHILD_CONNECTION_TIMEOUT +
"' is deprecated, please switch to '" + SparkLauncher.CHILD_CONNECTION_TIMEOUT +
"'.");
return Long.parseLong(value);
}
return DEFAULT_CONNECT_TIMEOUT;
}

private String createSecret() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,21 @@ public class SparkLauncher extends AbstractLauncher<SparkLauncher> {
*/
public static final String NO_RESOURCE = "spark-internal";

/**
* Maximum time (in ms) to wait for a child process to connect back to the launcher server
* when using @link{#start()}.
*
* @deprecated use `CHILD_CONNECTION_TIMEOUT`
* @since 1.6.0
*/
public static final String DEPRECATED_CHILD_CONNECTION_TIMEOUT =
"spark.launcher.childConectionTimeout";

/**
* Maximum time (in ms) to wait for a child process to connect back to the launcher server
* when using @link{#start()}.
*/
public static final String CHILD_CONNECTION_TIMEOUT = "spark.launcher.childConectionTimeout";
public static final String CHILD_CONNECTION_TIMEOUT = "spark.launcher.childConnectionTimeout";

/** Used internally to create unique logger names. */
private static final AtomicInteger COUNTER = new AtomicInteger();
Expand Down