File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed
resource-managers/mesos/src/main/scala/org/apache/spark Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -113,8 +113,6 @@ package object config {
113113 .stringConf
114114 .createOptional
115115
116- private [spark] val DEFAULT_QUEUE = " default"
117-
118116 private [spark] val DISPATCHER_QUEUE =
119117 ConfigBuilder (" spark.mesos.dispatcher.queue" )
120118 .doc(" Set the name of the dispatcher queue to which the application is submitted. " +
@@ -123,7 +121,7 @@ package object config {
123121 " the application is submitted to the \" default\" queue with 0.0 priority." )
124122 .version(" 3.1.0" )
125123 .stringConf
126- .createWithDefaultString(DEFAULT_QUEUE )
124+ .createWithDefaultString(" default " )
127125
128126 private [spark] val DRIVER_LABELS =
129127 ConfigBuilder (" spark.mesos.driver.labels" )
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ private[mesos] class MesosClusterPage(parent: MesosClusterUI) extends WebUIPage(
6969 val id = submission.submissionId
7070 <tr >
7171 <td ><a href ={s " driver?id= $id" }>{id}</a ></td >
72- <td >{submission.conf.get(" spark.mesos.dispatcher.queue" , config.DEFAULT_QUEUE )}</td >
72+ <td >{submission.conf.get(" spark.mesos.dispatcher.queue" , config.DISPATCHER_QUEUE .defaultValueString )}</td >
7373 <td >{UIUtils .formatDate(submission.submissionDate)}</td >
7474 <td >{submission.command.mainClass}</td >
7575 <td >cpus : {submission.cores}, mem : {submission.mem}</td >
@@ -101,7 +101,7 @@ private[mesos] class MesosClusterPage(parent: MesosClusterUI) extends WebUIPage(
101101 <td ><a href ={s " driver?id= $id" }>{id}</a ></td >
102102 {historyCol}
103103 <td >
104- {state.driverDescription.conf.get(" spark.mesos.dispatcher.queue" , config.DEFAULT_QUEUE )}
104+ {state.driverDescription.conf.get(" spark.mesos.dispatcher.queue" , config.DISPATCHER_QUEUE .defaultValueString )}
105105 </td >
106106 <td >{UIUtils .formatDate(state.driverDescription.submissionDate)}</td >
107107 <td >{state.driverDescription.command.mainClass}</td >
Original file line number Diff line number Diff line change @@ -390,8 +390,8 @@ private[spark] class MesosClusterScheduler(
390390 }
391391
392392 private [mesos] def getDriverPriority (desc : MesosDriverDescription ): Float = {
393- val queueName = desc.conf.get(" spark.mesos.dispatcher.queue" , config.DEFAULT_QUEUE )
394- if (queueName != config.DEFAULT_QUEUE ) {
393+ val queueName = desc.conf.get(" spark.mesos.dispatcher.queue" , config.DISPATCHER_QUEUE .defaultValueString )
394+ if (queueName != config.DISPATCHER_QUEUE .defaultValueString ) {
395395 queues.getOrElse(queueName, throw new NoSuchElementException (queueName))
396396 } else {
397397 0.0f
You can’t perform that action at this time.
0 commit comments