guixiaowen commented on PR #46496: URL: https://github.com/apache/spark/pull/46496#issuecomment-2105515304
> sorry this description is very hard to read. I think you are trying to say that stage level scheduling isn't supported on k8s and yarn when dynamic allocation is disabled? When you say dynamic partitions do you mean dynamic allocation of executors? > > That is not true we added support - https://issues.apache.org/jira/browse/SPARK-45495 > > The description as is: > > > * When dynamic allocation is disabled: It allows users to specify different task resource requirements at the stage level and will use the same executors requested at startup. > > Is correct. When dynamic allocation is off, you can specify a different resource profile that changes the task requiresments but uses the existing executors. @tgravescs Thank you for your reply. Can you help me check my configuration, code, and error messages returned. Is there a problem with our understanding? set spark.dynamicAllocation.enabled=false ` import org.apache.spark.resource.ResourceProfileBuilder import org.apache.spark.resource.TaskResourceRequests val rdd = sc.range(0, 9) val rpBuilder = new ResourceProfileBuilder() val taskReqs = new TaskResourceRequests().cpus(1) val rp = rpBuilder.require(taskReqs).build rdd.withResources(rp) ` Return info: ` org.apache.spark.SparkException: TaskResourceProfiles are only supported for Standalone cluster for now when dynamic allocation is disabled. at org.apache.spark.resource.ResourceProfileManager.isSupported(ResourceProfileManager.scala:71) at org.apache.spark.resource.ResourceProfileManager.addResourceProfile(ResourceProfileManager.scala:126) at org.apache.spark.rdd.RDD.withResources(RDD.scala:1829) ... 48 elided ` According to the document description, is '**specify different task resource requirements** ' set TaskResourceRequests? ‘ When dynamic allocation is disabled: It allows users to specify different task resource requirements at the stage level and will use the same executors requested at startup. ’ Is there a problem with my understanding? Can you help me answer this? Thank you. -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org