Skip to content

Commit 7045e77

Browse files
committed
Add mesos comment
1 parent 4770f6e commit 7045e77

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/main/scala/org/apache/spark/executor/MesosExecutorBackend.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ private[spark] class MesosExecutorBackend
5353
frameworkInfo: FrameworkInfo,
5454
slaveInfo: SlaveInfo) {
5555

56+
// Get num cores for this task from ExecutorInfo, created in MesosSchedulerBackend.
5657
val cpusPerTask = executorInfo.getResourcesList
5758
.find(_.getName == "cpus")
5859
.map(_.getScalar.getValue.toInt)

0 commit comments

Comments
 (0)