tgravescs commented on a change in pull request #24810: [SPARK-27760][CORE] Spark resources - change user resource config from .count to .amount URL: https://github.com/apache/spark/pull/24810#discussion_r291186968
########## File path: resource-managers/yarn/src/test/scala/org/apache/spark/deploy/yarn/ClientSuite.scala ########## @@ -400,19 +400,43 @@ class ClientSuite extends SparkFunSuite with Matchers { conf.set(s"${YARN_DRIVER_RESOURCE_TYPES_PREFIX}${yarnName}", "2") } resources.values.foreach { rName => - conf.set(s"${SPARK_DRIVER_RESOURCE_PREFIX}${rName}${SPARK_RESOURCE_COUNT_SUFFIX}", "3") + conf.set(s"${SPARK_DRIVER_RESOURCE_PREFIX}${rName}${SPARK_RESOURCE_AMOUNT_SUFFIX}", "3") } val error = intercept[SparkException] { ResourceRequestHelper.validateResources(conf) }.getMessage() assert(error.contains("Do not use spark.yarn.driver.resource.yarn.io/fpga," + - " please use spark.driver.resource.fpga")) + " please use spark.driver.resource.fpga.amount")) assert(error.contains("Do not use spark.yarn.driver.resource.yarn.io/gpu," + - " please use spark.driver.resource.gpu")) + " please use spark.driver.resource.gpu.amount")) } + test(s"custom executor resource request yarn config and spark config fails") { Review comment: updated ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org