Skip to content

Commit

Permalink
NoSuchMethodError in Spark app is swallowed by YARN AM
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheolsoo Park committed Feb 25, 2015
1 parent f84c799 commit eb5750d
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -483,14 +483,14 @@ private[spark] class ApplicationMaster(
} catch {
case e: InvocationTargetException =>
e.getCause match {
case _: InterruptedException =>
case e: InterruptedException =>
// Reporter thread can interrupt to stop user class
case e: Exception =>
case _ =>
finish(FinalApplicationStatus.FAILED,
ApplicationMaster.EXIT_EXCEPTION_USER_CLASS,
"User class threw exception: " + e.getMessage)
"User class threw exception: " + e.getCause.getMessage)
// re-throw to get it logged
throw e
throw e.getCause
}
}
}
Expand Down

0 comments on commit eb5750d

Please sign in to comment.