-
- Downloads
[SPARK-1516]Throw exception in yarn client instead of run system.exit directly.
All the changes is in the package of "org.apache.spark.deploy.yarn": 1) Throw exception in ClinetArguments and ClientBase instead of exit directly. 2) in Client's main method, if exception is caught, it will exit with code 1, otherwise exit with code 0. After the fix, if user integrate the spark yarn client into their applications, when the argument is wrong or the running is finished, the application won't be terminated. Author: John Zhao <jzhao@alpinenow.com> Closes #490 from codeboyyong/jira_1516_systemexit_inyarnclient and squashes the following commits: 138cb48 [John Zhao] [SPARK-1516]Throw exception in yarn clinet instead of run system.exit directly. All the changes is in the package of "org.apache.spark.deploy.yarn": 1) Add a ClientException with an exitCode 2) Throws exception in ClinetArguments and ClientBase instead of exit directly 3) in Client's main method, catch exception and exit with the exitCode.
Showing
- yarn/alpha/src/main/scala/org/apache/spark/deploy/yarn/Client.scala 11 additions, 3 deletions.../src/main/scala/org/apache/spark/deploy/yarn/Client.scala
- yarn/common/src/main/scala/org/apache/spark/deploy/yarn/ClientArguments.scala 6 additions, 10 deletions.../scala/org/apache/spark/deploy/yarn/ClientArguments.scala
- yarn/common/src/main/scala/org/apache/spark/deploy/yarn/ClientBase.scala 16 additions, 10 deletions.../main/scala/org/apache/spark/deploy/yarn/ClientBase.scala
- yarn/stable/src/main/scala/org/apache/spark/deploy/yarn/Client.scala 11 additions, 3 deletions.../src/main/scala/org/apache/spark/deploy/yarn/Client.scala
Loading
Please register or sign in to comment