apache/spark — pull request #490 by codeboyyong (2014-04-23 00:49:52+00:00)
Title: [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.