You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by codeboyyong <gi...@git.apache.org> on 2014/04/23 02:49:54 UTC

[GitHub] spark pull request: [SPARK-1516]Throw exception in yarn client ins...

GitHub user codeboyyong opened a pull request:

    https://github.com/apache/spark/pull/490

    [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. 


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/AlpineNow/spark jira_1516_systemexit_inyarnclient

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/490.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #490
    
----
commit f7a037988a9477b2a4e7b8fce0720e5ae3eda0ac
Author: John Zhao <jz...@alpinenow.com>
Date:   2014-04-22T22:58:35Z

    [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.
    
    After the fix, if user integrate the spark yarn cline into their applications, when the argument is wrong or the running is finished, the application will not exit. Now the exit only happens in command line running.

commit 5ae631d688d25a2f1ca79319c490357a3d4caad4
Author: John Zhao <jz...@alpinenow.com>
Date:   2014-04-23T00:45:19Z

    Code formatting

----


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1516]Throw exception in yarn client ins...

Posted by mengxr <gi...@git.apache.org>.
Github user mengxr commented on the pull request:

    https://github.com/apache/spark/pull/490#issuecomment-45965012
  
    Jenkins, add to whitelist.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1516]Throw exception in yarn client ins...

Posted by mengxr <gi...@git.apache.org>.
Github user mengxr commented on a diff in the pull request:

    https://github.com/apache/spark/pull/490#discussion_r13690782
  
    --- Diff: yarn/stable/src/main/scala/org/apache/spark/deploy/yarn/Client.scala ---
    @@ -188,9 +187,18 @@ object Client {
         // see Client#setupLaunchEnv().
         System.setProperty("SPARK_YARN_MODE", "true")
         val sparkConf = new SparkConf()
    -    val args = new ClientArguments(argStrings, sparkConf)
     
    -    new Client(args, sparkConf).run()
    +    try{
    --- End diff --
    
    `try {`


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1516]Throw exception in yarn client ins...

Posted by sryza <gi...@git.apache.org>.
Github user sryza commented on the pull request:

    https://github.com/apache/spark/pull/490#issuecomment-41822987
  
    This change makes sense to me.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1516]Throw exception in yarn client ins...

Posted by dbtsai <gi...@git.apache.org>.
Github user dbtsai commented on a diff in the pull request:

    https://github.com/apache/spark/pull/490#discussion_r11883381
  
    --- Diff: yarn/common/src/main/scala/org/apache/spark/deploy/yarn/ClientBase.scala ---
    @@ -77,7 +78,8 @@ trait ClientBase extends Logging {
         ).foreach { case(cond, errStr) =>
           if (cond) {
             logError(errStr)
    -        args.printUsageAndExit(1)
    +        throw new IllegalArgumentException(args.getUsageMessage())
    +
    --- End diff --
    
    Remove this empty line.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1516]Throw exception in yarn client ins...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/490#issuecomment-45969007
  
    Merged build finished. All automated tests passed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1516]Throw exception in yarn client ins...

Posted by mengxr <gi...@git.apache.org>.
Github user mengxr commented on a diff in the pull request:

    https://github.com/apache/spark/pull/490#discussion_r13690774
  
    --- Diff: yarn/common/src/main/scala/org/apache/spark/deploy/yarn/ClientArguments.scala ---
    @@ -18,6 +18,7 @@
     package org.apache.spark.deploy.yarn
     
     import scala.collection.mutable.{ArrayBuffer, HashMap}
    +import scala.IllegalArgumentException
    --- End diff --
    
    Is it necessary? Scala imports `java.lang.IAE` by default.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1516]Throw exception in yarn client ins...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/490#issuecomment-41113724
  
    Can one of the admins verify this patch?


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1516]Throw exception in yarn client ins...

Posted by codeboyyong <gi...@git.apache.org>.
Github user codeboyyong commented on the pull request:

    https://github.com/apache/spark/pull/490#issuecomment-45681667
  
    I merged it to the master now. Will do 0.9 soon


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1516]Throw exception in yarn client ins...

Posted by mengxr <gi...@git.apache.org>.
Github user mengxr commented on a diff in the pull request:

    https://github.com/apache/spark/pull/490#discussion_r13689598
  
    --- Diff: yarn/alpha/src/main/scala/org/apache/spark/deploy/yarn/Client.scala ---
    @@ -179,8 +178,17 @@ object Client {
         System.setProperty("SPARK_YARN_MODE", "true")
     
         val sparkConf = new SparkConf
    -    val args = new ClientArguments(argStrings, sparkConf)
     
    -    new Client(args, sparkConf).run
    +    try{
    --- End diff --
    
    `try {`


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1516]Throw exception in yarn client ins...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/490#issuecomment-45969012
  
    All automated tests passed.
    Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/15744/


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1516]Throw exception in yarn client ins...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/490#issuecomment-41117046
  
    All automated tests passed.
    Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/14350/


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1516]Throw exception in yarn client ins...

Posted by dbtsai <gi...@git.apache.org>.
Github user dbtsai commented on a diff in the pull request:

    https://github.com/apache/spark/pull/490#discussion_r13624580
  
    --- Diff: yarn/common/src/main/scala/org/apache/spark/deploy/yarn/ClientBase.scala ---
    @@ -95,15 +96,18 @@ trait ClientBase extends Logging {
     
         // If we have requested more then the clusters max for a single resource then exit.
         if (args.executorMemory > maxMem) {
    -      logError("Required executor memory (%d MB), is above the max threshold (%d MB) of this cluster.".
    -        format(args.executorMemory, maxMem))
    -      System.exit(1)
    +      val errorMessage =
    +        "Required executor memory (%d MB), is above the max threshold (%d MB) of this cluster.".
    +        format(args.executorMemory, maxMem)
    --- End diff --
    
    Move the . to the new line


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1516]Throw exception in yarn client ins...

Posted by codeboyyong <gi...@git.apache.org>.
Github user codeboyyong commented on the pull request:

    https://github.com/apache/spark/pull/490#issuecomment-45928754
  
    @mengxr, I made the change based on your comments.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1516]Throw exception in yarn client ins...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/490#issuecomment-41115328
  
    Merged build started. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1516]Throw exception in yarn client ins...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/490#issuecomment-41115323
  
     Merged build triggered. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1516]Throw exception in yarn client ins...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/490#issuecomment-45966210
  
    Merged build started. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1516]Throw exception in yarn client ins...

Posted by dbtsai <gi...@git.apache.org>.
Github user dbtsai commented on the pull request:

    https://github.com/apache/spark/pull/490#issuecomment-45277558
  
    This looks good to me. 
    
    However, we still have more of System.exit in different deployment code; we probably want to review and fix them. This can be a good step!


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1516]Throw exception in yarn client ins...

Posted by mengxr <gi...@git.apache.org>.
Github user mengxr commented on the pull request:

    https://github.com/apache/spark/pull/490#issuecomment-45976550
  
    @codeboyyong I've merged this. Could you please make a patch for branch-0.9? Thanks!


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1516]Throw exception in yarn client ins...

Posted by dbtsai <gi...@git.apache.org>.
Github user dbtsai commented on the pull request:

    https://github.com/apache/spark/pull/490#issuecomment-41114289
  
    Jenkins, add to whitelist.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1516]Throw exception in yarn client ins...

Posted by pwendell <gi...@git.apache.org>.
Github user pwendell commented on the pull request:

    https://github.com/apache/spark/pull/490#issuecomment-41115145
  
    Jenkins, test this please.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1516]Throw exception in yarn client ins...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/490#issuecomment-45965295
  
     Merged build triggered. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1516]Throw exception in yarn client ins...

Posted by tgravescs <gi...@git.apache.org>.
Github user tgravescs commented on the pull request:

    https://github.com/apache/spark/pull/490#issuecomment-45274129
  
    I think this change would be good too. I think we should also look into what our exit code is and how it would fix into workflow managers like oozie.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1516]Throw exception in yarn client ins...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/490#issuecomment-41117045
  
    Merged build finished. All automated tests passed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1516]Throw exception in yarn client ins...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/spark/pull/490


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1516]Throw exception in yarn client ins...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/490#issuecomment-45965021
  
     Merged build triggered. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1516]Throw exception in yarn client ins...

Posted by codeboyyong <gi...@git.apache.org>.
Github user codeboyyong commented on the pull request:

    https://github.com/apache/spark/pull/490#issuecomment-45976588
  
    Sure, will do this at weekend.
    
    On Jun 12, 2014, at 10:13 PM, Xiangrui Meng <no...@github.com> wrote:
    
    > @codeboyyong I've merged this. Could you please make a patch for branch-0.9? Thanks!
    > 
    > —
    > Reply to this email directly or view it on GitHub.
    > 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1516]Throw exception in yarn client ins...

Posted by dbtsai <gi...@git.apache.org>.
Github user dbtsai commented on a diff in the pull request:

    https://github.com/apache/spark/pull/490#discussion_r13624385
  
    --- Diff: yarn/common/src/main/scala/org/apache/spark/deploy/yarn/ClientBase.scala ---
    @@ -95,15 +96,18 @@ trait ClientBase extends Logging {
     
         // If we have requested more then the clusters max for a single resource then exit.
         if (args.executorMemory > maxMem) {
    -      logError("Required executor memory (%d MB), is above the max threshold (%d MB) of this cluster.".
    -        format(args.executorMemory, maxMem))
    -      System.exit(1)
    +      val errorMessage =
    +        "Required executor memory (%d MB), is above the max threshold (%d MB) of this cluster.".
    +        format(args.executorMemory, maxMem)
    +      logError(errorMessage)
    +      throw new IllegalArgumentException(errorMessage)
         }
         val amMem = args.amMemory + YarnAllocationHandler.MEMORY_OVERHEAD
         if (amMem > maxMem) {
    -      logError("Required AM memory (%d) is above the max threshold (%d) of this cluster".
    -        format(args.amMemory, maxMem))
    -      System.exit(1)
    +      val errorMessage ="Required AM memory (%d) is above the max threshold (%d) of this cluster".
    --- End diff --
    
    Please add a space after =


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1516]Throw exception in yarn client ins...

Posted by dbtsai <gi...@git.apache.org>.
Github user dbtsai commented on the pull request:

    https://github.com/apache/spark/pull/490#issuecomment-45835283
  
    @mengxr Do you think it's in good shape now? This is the only issue blocking us using vanilla spark. Thanks.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1516]Throw exception in yarn client ins...

Posted by mengxr <gi...@git.apache.org>.
Github user mengxr commented on a diff in the pull request:

    https://github.com/apache/spark/pull/490#discussion_r13690778
  
    --- Diff: yarn/common/src/main/scala/org/apache/spark/deploy/yarn/ClientBase.scala ---
    @@ -24,6 +24,7 @@ import java.nio.ByteBuffer
     import scala.collection.JavaConversions._
     import scala.collection.mutable.{HashMap, ListBuffer, Map}
     import scala.util.{Try, Success, Failure}
    +import scala.IllegalArgumentException
    --- End diff --
    
    Not necessary.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1516]Throw exception in yarn client ins...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/490#issuecomment-45969006
  
    Merged build finished. All automated tests passed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1516]Throw exception in yarn client ins...

Posted by dbtsai <gi...@git.apache.org>.
Github user dbtsai commented on a diff in the pull request:

    https://github.com/apache/spark/pull/490#discussion_r13624615
  
    --- Diff: yarn/common/src/main/scala/org/apache/spark/deploy/yarn/ClientBase.scala ---
    @@ -95,15 +96,18 @@ trait ClientBase extends Logging {
     
         // If we have requested more then the clusters max for a single resource then exit.
         if (args.executorMemory > maxMem) {
    -      logError("Required executor memory (%d MB), is above the max threshold (%d MB) of this cluster.".
    -        format(args.executorMemory, maxMem))
    -      System.exit(1)
    +      val errorMessage =
    +        "Required executor memory (%d MB), is above the max threshold (%d MB) of this cluster.".
    +        format(args.executorMemory, maxMem)
    +      logError(errorMessage)
    +      throw new IllegalArgumentException(errorMessage)
         }
         val amMem = args.amMemory + YarnAllocationHandler.MEMORY_OVERHEAD
         if (amMem > maxMem) {
    -      logError("Required AM memory (%d) is above the max threshold (%d) of this cluster".
    -        format(args.amMemory, maxMem))
    -      System.exit(1)
    +      val errorMessage ="Required AM memory (%d) is above the max threshold (%d) of this cluster".
    --- End diff --
    
    move the . to the newline 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1516]Throw exception in yarn client ins...

Posted by mengxr <gi...@git.apache.org>.
Github user mengxr commented on the pull request:

    https://github.com/apache/spark/pull/490#issuecomment-45965023
  
    Jenkins, test this please.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1516]Throw exception in yarn client ins...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/490#issuecomment-45969010
  
    All automated tests passed.
    Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/15745/


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1516]Throw exception in yarn client ins...

Posted by mengxr <gi...@git.apache.org>.
Github user mengxr commented on a diff in the pull request:

    https://github.com/apache/spark/pull/490#discussion_r13690775
  
    --- Diff: yarn/common/src/main/scala/org/apache/spark/deploy/yarn/ClientArguments.scala ---
    @@ -138,11 +139,10 @@ class ClientArguments(val args: Array[String], val sparkConf: SparkConf) {
       }
     
     
    -  def printUsageAndExit(exitCode: Int, unknownParam: Any = null) {
    -    if (unknownParam != null) {
    -      System.err.println("Unknown/unsupported param " + unknownParam)
    -    }
    -    System.err.println(
    +  def getUsageMessage(unknownParam: Any = null): String = {
    +    val message = if (unknownParam != null) "Unknown/unsupported param " + unknownParam+ "\n" else ""
    --- End diff --
    
    `s"Unknown/unsupported param $unknownParam\n"` looks better.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1516]Throw exception in yarn client ins...

Posted by mengxr <gi...@git.apache.org>.
Github user mengxr commented on the pull request:

    https://github.com/apache/spark/pull/490#issuecomment-45578114
  
    @codeboyyong It is not mergable now. Do you mind merging the master branch and also create a separate PR for branch-0.9?


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1516]Throw exception in yarn client ins...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/490#issuecomment-45965031
  
    Merged build started. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---