Skip to content

Commit 4afe71d

Browse files
committed
review commit
1 parent 9e4ffa7 commit 4afe71d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

core/src/main/scala/org/apache/spark/scheduler/cluster/CoarseGrainedSchedulerBackend.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,9 @@ class CoarseGrainedSchedulerBackend(scheduler: TaskSchedulerImpl, actorSystem: A
144144
val ser = SparkEnv.get.closureSerializer.newInstance()
145145
val serializedTask = ser.serialize(task)
146146
if (serializedTask.limit >= akkaFrameSize - 1024) {
147-
var msg = "Serialized task %s:%d were %d bytes which " +
148-
"exceeds spark.akka.frameSize (%d bytes)."
147+
var msg = "Serialized task %s:%d was %d bytes which " +
148+
"exceeds spark.akka.frameSize (%d bytes)." +
149+
"Consider using broadcast variables for large values"
149150
msg = msg.format(task.taskId, task.index, serializedTask.limit, akkaFrameSize)
150151
scheduler.error(msg)
151152
// TODO: Need to throw an exception?

0 commit comments

Comments
 (0)