vanzin commented on a change in pull request #26255: [SPARK-29603][YARN] 
Support application priority for YARN priority scheduling
URL: https://github.com/apache/spark/pull/26255#discussion_r342874375
 
 

 ##########
 File path: 
resource-managers/yarn/src/main/scala/org/apache/spark/deploy/yarn/Client.scala
 ##########
 @@ -307,6 +307,12 @@ private[spark] class Client(
       }
     }
     appContext.setUnmanagedAM(isClientUnmanagedAMEnabled)
+
+    sparkConf.get(APPLICATION_PRIORITY) match {
+      case Some(v) => appContext.setPriority(Priority.newInstance(v))
+      case None => logDebug(s"${APPLICATION_PRIORITY.key} is not set. " +
 
 Review comment:
   This debug message is not really useful. Just do 
`sparkConf.get(...).foreach`.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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