Github user srowen commented on a diff in the pull request: https://github.com/apache/spark/pull/20761#discussion_r206644083 --- Diff: resource-managers/yarn/src/main/scala/org/apache/spark/deploy/yarn/Client.scala --- @@ -249,6 +259,10 @@ private[spark] class Client( val capability = Records.newRecord(classOf[Resource]) capability.setMemory(amMemory + amMemoryOverhead) capability.setVirtualCores(amCores) + if (amResources.nonEmpty) { + ResourceTypeHelper.setResourceInfoFromResourceTypes(amResources, capability) + } + logDebug("Created resource capability for AM request: %s".format(capability.toString)) --- End diff -- Nit: use interpolation, and `.toString` isn't needed
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org