dongjoon-hyun commented on a change in pull request #23743:
[SPARK-26843][MESOS] Use ConfigEntry for hardcoded configs for "mesos" resource
manager
URL: https://github.com/apache/spark/pull/23743#discussion_r254999537
##########
File path:
resource-managers/mesos/src/main/scala/org/apache/spark/deploy/mesos/config.scala
##########
@@ -118,6 +143,140 @@ package object config {
.stringConf
.createWithDefault("")
+ private[spark] val DRIVER_FRAMEWORK_ID =
+ ConfigBuilder("spark.mesos.driver.frameworkId")
+ .stringConf
+ .createOptional
+
private[spark] val EXECUTOR_URI =
ConfigBuilder("spark.executor.uri").stringConf.createOptional
+
+ private[spark] val PROXY_BASE_URL =
+ ConfigBuilder("spark.mesos.proxy.baseURL").stringConf.createOptional
+
+ private[spark] val COARSE_MODE =
+ ConfigBuilder("spark.mesos.coarse").booleanConf.createWithDefault(true)
+
+ private[spark] val COARSE_SHUTDOWN_TIMEOUT =
+ ConfigBuilder("spark.mesos.coarse.shutdownTimeout")
+ .timeConf(TimeUnit.MILLISECONDS)
+ .createWithDefaultString("10s")
+
+ private[spark] val MAX_DRIVERS =
+ ConfigBuilder("spark.mesos.maxDrivers").intConf.createWithDefault(200)
+
+ private[spark] val RETAINED_DRIVERS =
+ ConfigBuilder("spark.mesos.retainedDrivers").intConf.createWithDefault(200)
+
+ private[spark] val CLUSTER_RETRY_WAIT_MAX_SECONDS =
+ ConfigBuilder("spark.mesos.cluster.retry.wait.max")
+ .intConf
+ .createWithDefault(60) // 1 minute
+
+ private[spark] val ENABLE_FETCHER_CACHE =
+ ConfigBuilder("spark.mesos.fetcherCache.enable")
+ .booleanConf
+ .createWithDefault(false)
+
+ private[spark] val APPLICATION_JAR_LOCAL_RESOLUTION_MODE =
Review comment:
nit. Can we use a shorter name like `APP_JAR_LOCAL_RESOLUTION_MODE` like
`APP_STATUS_METRICS_ENABLED`?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]