Skip to content

Commit 5f3238b

Browse files
Cheolsoo ParkAndrew Or
authored andcommitted
[SPARK-6018] [YARN] NoSuchMethodError in Spark app is swallowed by YARN AM
Author: Cheolsoo Park <[email protected]> Closes #4773 from piaozhexiu/SPARK-6018 and squashes the following commits: 2a919d5 [Cheolsoo Park] Rename e with cause to avoid duplicate names 1e71d2d [Cheolsoo Park] Replace placeholder with throwable eb5750d [Cheolsoo Park] NoSuchMethodError in Spark app is swallowed by YARN AM
1 parent aa63f63 commit 5f3238b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -485,12 +485,12 @@ private[spark] class ApplicationMaster(
485485
e.getCause match {
486486
case _: InterruptedException =>
487487
// Reporter thread can interrupt to stop user class
488-
case e: Exception =>
488+
case cause: Throwable =>
489489
finish(FinalApplicationStatus.FAILED,
490490
ApplicationMaster.EXIT_EXCEPTION_USER_CLASS,
491-
"User class threw exception: " + e.getMessage)
491+
"User class threw exception: " + cause.getMessage)
492492
// re-throw to get it logged
493-
throw e
493+
throw cause
494494
}
495495
}
496496
}

0 commit comments

Comments
 (0)