Skip to content
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Updated names of two configuration properties
  • Loading branch information
liyinan926 committed Dec 23, 2017
commit 9d9c841b3528e0806280a58a0a8acaa456aa6e44
Original file line number Diff line number Diff line change
Expand Up @@ -152,17 +152,16 @@ private[spark] object Config extends Logging {
.createOptional

val INIT_CONTAINER_MOUNT_TIMEOUT =
ConfigBuilder("spark.kubernetes.mountDependencies.mountTimeout")
.doc("Timeout before aborting the attempt to download and unpack local dependencies from " +
"remote locations and the resource staging server when initializing the driver and " +
"executor pods.")
ConfigBuilder("spark.kubernetes.mountDependencies.timeout")
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: spark.kubernetes.initContainer.mountDependencies.timeout?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Please see the response regarding spark.kubernetes.mountDependencies.maxSimultaneousDownloads.

.doc("Timeout before aborting the attempt to download and unpack dependencies from remote " +
"locations into the driver and executor pods.")
.timeConf(TimeUnit.MINUTES)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not TimeUnit.SECONDS?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

.createWithDefault(5)

val INIT_CONTAINER_MAX_THREAD_POOL_SIZE =
ConfigBuilder("spark.kubernetes.initContainer.maxThreadPoolSize")
.doc("Maximum size of the thread pool in the init-container for downloading remote " +
"dependencies.")
ConfigBuilder("spark.kubernetes.mountDependencies.maxSimultaneousDownloads")
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: spark.kubernetes.initContainer.mountDependencies.maxSimultaneousDownloads?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think the current name is already pretty long. Adding initContainer makes it even longer without much added value.

.doc("Maximum number of remote dependencies to download simultaneously in a driver or " +
"executor pod.")
.intConf
.createWithDefault(5)

Expand Down