Skip to content

Commit 48bdf3d

Browse files
committed
Add suggested configuration.
1 parent ebfd91c commit 48bdf3d

File tree

1 file changed

+4
-2
lines changed
  • yarn/src/main/scala/org/apache/spark/deploy/yarn

1 file changed

+4
-2
lines changed

yarn/src/main/scala/org/apache/spark/deploy/yarn/Client.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,12 +203,14 @@ private[spark] class Client(
203203
val executorMem = args.executorMemory + executorMemoryOverhead
204204
if (executorMem > maxMem) {
205205
throw new IllegalArgumentException(s"Required executor memory (${args.executorMemory}" +
206-
s"+$executorMemoryOverhead MB) is above the max threshold ($maxMem MB) of this cluster!")
206+
s"+$executorMemoryOverhead MB) is above the max threshold ($maxMem MB) of this cluster! " +
207+
"Please increase the value of 'yarn.scheduler.maximum-allocation-mb'.")
207208
}
208209
val amMem = args.amMemory + amMemoryOverhead
209210
if (amMem > maxMem) {
210211
throw new IllegalArgumentException(s"Required AM memory (${args.amMemory}" +
211-
s"+$amMemoryOverhead MB) is above the max threshold ($maxMem MB) of this cluster!")
212+
s"+$amMemoryOverhead MB) is above the max threshold ($maxMem MB) of this cluster! " +
213+
"Please increase the value of 'yarn.scheduler.maximum-allocation-mb'.")
212214
}
213215
logInfo("Will allocate AM container, with %d MB memory including %d MB overhead".format(
214216
amMem,

0 commit comments

Comments
 (0)