Github user tgravescs commented on a diff in the pull request:

    https://github.com/apache/spark/pull/561#discussion_r13402666
  
    --- Diff: 
yarn/stable/src/main/scala/org/apache/spark/deploy/yarn/ApplicationMaster.scala 
---
    @@ -173,25 +166,24 @@ class ApplicationMaster(args: 
ApplicationMasterArguments, conf: Configuration,
         logInfo("Starting the user JAR in a separate Thread")
         val mainMethod = Class.forName(
           args.userClass,
    -      false /* initialize */ ,
    +      false,
           Thread.currentThread.getContextClassLoader).getMethod("main", 
classOf[Array[String]])
         val t = new Thread {
           override def run() {
    -
    -      var successed = false
    +        var succeeded = false
             try {
               // Copy
    -          var mainArgs: Array[String] = new 
Array[String](args.userArgs.size)
    +          val mainArgs = new Array[String](args.userArgs.size)
               args.userArgs.copyToArray(mainArgs, 0, args.userArgs.size)
               mainMethod.invoke(null, mainArgs)
    -          // some job script has "System.exit(0)" at the end, for example 
SparkPi, SparkLR
    +          // Some job scripts have "System.exit(0)" at the end, for 
example SparkPi and SparkLR.
    --- End diff --
    
    could you remove ", for example SparkPi and SparkLR".  We have updated the 
spark examples to not due a system.exit().


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to