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_r255010291
 
 

 ##########
 File path: 
resource-managers/mesos/src/main/scala/org/apache/spark/scheduler/cluster/mesos/MesosClusterScheduler.scala
 ##########
 @@ -419,22 +419,20 @@ private[spark] class MesosClusterScheduler(
 
   private def isContainerLocalAppJar(desc: MesosDriverDescription): Boolean = {
     val isLocalJar = desc.jarUrl.startsWith("local://")
-    val isContainerLocal = 
desc.conf.getOption("spark.mesos.appJar.local.resolution.mode").exists {
+    val isContainerLocal = 
desc.conf.get(config.APPLICATION_JAR_LOCAL_RESOLUTION_MODE).exists {
       case "container" => true
       case "host" => false
       case other =>
-        logWarning(s"Unknown spark.mesos.appJar.local.resolution.mode $other, 
using host.")
+        logWarning(s"Unknown ${config.APPLICATION_JAR_LOCAL_RESOLUTION_MODE} 
$other, using host.")
         false
       }
 
 Review comment:
   If we have `checkValue`, we can simplify the above logic line 422 ~ 426, too.

----------------------------------------------------------------
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]

Reply via email to