aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCheolsoo Park <cheolsoop@netflix.com>2015-02-26 13:53:49 -0800
committerAndrew Or <andrew@databricks.com>2015-02-26 13:53:57 -0800
commitfe7967483d1b0871c128863f51826c43fd71a12e (patch)
tree1c6dba61c286f352b809c2ee699a831a60976b94
parent731a997db6482c96d2aef3a078cce89e078f3173 (diff)
downloadspark-fe7967483d1b0871c128863f51826c43fd71a12e.tar.gz
spark-fe7967483d1b0871c128863f51826c43fd71a12e.tar.bz2
spark-fe7967483d1b0871c128863f51826c43fd71a12e.zip
[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 5f3238b3b0157091d28803aa3b1d248dfa6cdc59) Signed-off-by: Andrew Or <andrew@databricks.com>
-rw-r--r--yarn/src/main/scala/org/apache/spark/deploy/yarn/ApplicationMaster.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/yarn/src/main/scala/org/apache/spark/deploy/yarn/ApplicationMaster.scala b/yarn/src/main/scala/org/apache/spark/deploy/yarn/ApplicationMaster.scala
index a9bf861d16..20fc19166a 100644
--- a/yarn/src/main/scala/org/apache/spark/deploy/yarn/ApplicationMaster.scala
+++ b/yarn/src/main/scala/org/apache/spark/deploy/yarn/ApplicationMaster.scala
@@ -485,12 +485,12 @@ private[spark] class ApplicationMaster(
e.getCause match {
case _: InterruptedException =>
// Reporter thread can interrupt to stop user class
- case e: Exception =>
+ case cause: Throwable =>
finish(FinalApplicationStatus.FAILED,
ApplicationMaster.EXIT_EXCEPTION_USER_CLASS,
- "User class threw exception: " + e.getMessage)
+ "User class threw exception: " + cause.getMessage)
// re-throw to get it logged
- throw e
+ throw cause
}
}
}