LuciferYang commented on code in PR #40940:
URL: https://github.com/apache/spark/pull/40940#discussion_r1176467971
##########
resource-managers/yarn/src/main/scala/org/apache/spark/deploy/yarn/Client.scala:
##########
@@ -389,7 +389,7 @@ private[spark] class Client(
* Fail fast if we have requested more resources per container than is
available in the cluster.
*/
private def verifyClusterResources(newAppResponse:
GetNewApplicationResponse): Unit = {
- val maxMem = newAppResponse.getMaximumResourceCapability().getMemory()
+ val maxMem = newAppResponse.getMaximumResourceCapability.getMemorySize
Review Comment:
The return type of `getMemorySize` is `long`, `getMemory` return `int`
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]