Ngone51 commented on a change in pull request #27787: [SPARK-31035][WEBUI] Show
assigned resource information for local mode
URL: https://github.com/apache/spark/pull/27787#discussion_r387532582
##########
File path: core/src/main/scala/org/apache/spark/SparkContext.scala
##########
@@ -2788,7 +2788,7 @@ object SparkContext extends Logging {
case "local" =>
checkResourcesPerTask(1)
val scheduler = new TaskSchedulerImpl(sc, MAX_LOCAL_TASK_FAILURES,
isLocal = true)
- val backend = new LocalSchedulerBackend(sc.getConf, scheduler, 1)
+ val backend = new LocalSchedulerBackend(sc.getConf, scheduler, 1,
sc._resources)
Review comment:
Maybe we should do `parseOrFindResources` for `executor` in
`LocalSchedulerBackend` and then we could get the real resources which
configured from `executor`.
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]