Repository: spark Updated Branches: refs/heads/master f7435bec6 -> 9ee9fcf52
[SPARK-24083][YARN] Log stacktrace for uncaught exception ## What changes were proposed in this pull request? Log stacktrace for uncaught exception ## How was this patch tested? UT and manually test Author: zhoukang <[email protected]> Closes #21151 from caneGuy/zhoukang/log-stacktrace. Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/9ee9fcf5 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/9ee9fcf5 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/9ee9fcf5 Branch: refs/heads/master Commit: 9ee9fcf5223efdf7543161b7bc99131111876b92 Parents: f7435be Author: zhoukang <[email protected]> Authored: Thu Apr 26 15:38:11 2018 -0700 Committer: Marcelo Vanzin <[email protected]> Committed: Thu Apr 26 15:38:11 2018 -0700 ---------------------------------------------------------------------- .../scala/org/apache/spark/deploy/yarn/ApplicationMaster.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/9ee9fcf5/resource-managers/yarn/src/main/scala/org/apache/spark/deploy/yarn/ApplicationMaster.scala ---------------------------------------------------------------------- diff --git a/resource-managers/yarn/src/main/scala/org/apache/spark/deploy/yarn/ApplicationMaster.scala b/resource-managers/yarn/src/main/scala/org/apache/spark/deploy/yarn/ApplicationMaster.scala index d04989e..6508400 100644 --- a/resource-managers/yarn/src/main/scala/org/apache/spark/deploy/yarn/ApplicationMaster.scala +++ b/resource-managers/yarn/src/main/scala/org/apache/spark/deploy/yarn/ApplicationMaster.scala @@ -308,7 +308,7 @@ private[spark] class ApplicationMaster(args: ApplicationMasterArguments) extends logError("Uncaught exception: ", e) finish(FinalApplicationStatus.FAILED, ApplicationMaster.EXIT_UNCAUGHT_EXCEPTION, - "Uncaught exception: " + e) + "Uncaught exception: " + StringUtils.stringifyException(e)) } } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
