Skip to content

Commit e21475d

Browse files
Cheolsoo ParkAndrew Or
authored andcommitted
[SPARK-6018] [YARN] NoSuchMethodError in Spark app is swallowed by YARN AM
Author: Cheolsoo Park <cheolsoop@netflix.com> 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 (cherry picked from commit 5f3238b) Signed-off-by: Andrew Or <andrew@databricks.com>
1 parent 94faf4c commit e21475d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -446,12 +446,12 @@ private[spark] class ApplicationMaster(args: ApplicationMasterArguments,
446446
e.getCause match {
447447
case _: InterruptedException =>
448448
// Reporter thread can interrupt to stop user class
449-
case e: Exception =>
449+
case cause: Throwable =>
450450
finish(FinalApplicationStatus.FAILED,
451451
ApplicationMaster.EXIT_EXCEPTION_USER_CLASS,
452-
"User class threw exception: " + e.getMessage)
452+
"User class threw exception: " + cause.getMessage)
453453
// re-throw to get it logged
454-
throw e
454+
throw cause
455455
}
456456
}
457457
}

0 commit comments

Comments
 (0)