srowen commented on issue #23290: [SPARK-26340][Core] Ensure cores per executor is greater than cpu per task URL: https://github.com/apache/spark/pull/23290#issuecomment-446348399 Yes, it shouldn't be in TaskSchedulerImpl. I think the check is OK as there's no good reason you'd allow 1-core executors when all tasks need 2 cores. My only concern is that spark.executor.cores defaults to to 1 in YARN mode, but probably best to fail fast if that's the case.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on 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]
