Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-1516]Throw exception in yarn client instead of run system.exit #1099

Closed
wants to merge 2 commits into from

Conversation

codeboyyong
Copy link
Contributor

[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 IllegalArgumentException in ClinetArguments  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.
    3) In YarnClientSchedulerBackend's start method, if IllegalArgumentException is caught, it will exit with code 1, otherwise throw that exception.
    4) Fix some message typo in the Client.scala
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.

+CC @dbtsai @mengxr

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@AmplabJenkins
Copy link

Merged build finished.

@AmplabJenkins
Copy link

Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/15827/

Console.err.println(e.getMessage)
System.exit(1)
}
case x:Throwable => throw x
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this line since this is the default behavior.

@mengxr
Copy link
Contributor

mengxr commented Jun 17, 2014

@codeboyyong Thanks for submitting the patch! It looks good to me except a few style issues. Did you test both stable and alpha yarn clusters?

…t directly.

  All the changes is in  the package of "org.apache.spark.deploy.yarn":
     1) Throw IllegalArgumentException in ClinetArguments  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.
     3) In YarnClientSchedulerBackend's start method, if IllegalArgumentException is caught, it will exit with code 1, otherwise throw that exception.
     4) Fix some message typo in the Client.scala

    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.
@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@AmplabJenkins
Copy link

Merged build finished.

@AmplabJenkins
Copy link

Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/15845/

@codeboyyong
Copy link
Contributor Author

@mengxr . I fix the format . And I did the test on hadoop-2.0.5-alpha and hadoop 2.2.0. The command line now works as usual. And my local yarn cluster is not working .I might test the run time exit later. Will let you know the result

…" so that client console can get more useful information when somthing is wrong.
@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@AmplabJenkins
Copy link

Merged build finished.

@AmplabJenkins
Copy link

Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/15857/

@mengxr
Copy link
Contributor

mengxr commented Jun 23, 2014

Jenkins, retest this please.

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@AmplabJenkins
Copy link

Merged build finished.

@AmplabJenkins
Copy link

Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/16019/

@mengxr
Copy link
Contributor

mengxr commented Jun 24, 2014

Jenkins, retest this please.

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@AmplabJenkins
Copy link

Merged build finished.

@mengxr
Copy link
Contributor

mengxr commented Jun 26, 2014

Jenkins, retest this please.

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@AmplabJenkins
Copy link

Merged build finished.

@AmplabJenkins
Copy link

Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/16138/

@tgravescs
Copy link
Contributor

Jenkins, retest this please.

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@AmplabJenkins
Copy link

Merged build finished.

@AmplabJenkins
Copy link

Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/16161/

@dbtsai
Copy link
Member

dbtsai commented Jun 26, 2014

Seems that the jenkins is missing the python runtime.

@codeboyyong
Copy link
Contributor Author

Would this be caused by this commit?
Should we revert it and try again ?

John.

On Jun 26, 2014, at 9:50 AM, DB Tsai notifications@github.com wrote:

Seems that the jenkins is missing the python runtime.


Reply to this email directly or view it on GitHub.

@mengxr
Copy link
Contributor

mengxr commented Jun 26, 2014

I think PYSPARK_PYTHON is set to /usr/local/bin/python2.7 in Jenkins but it doesn't exist. @pwendell ?

@mengxr
Copy link
Contributor

mengxr commented Jul 3, 2014

Jenkins, retest this please.

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@AmplabJenkins
Copy link

Merged build finished.

@AmplabJenkins
Copy link

Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/16310/

@mengxr
Copy link
Contributor

mengxr commented Jul 3, 2014

Jenkins, retest this please.

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@AmplabJenkins
Copy link

Merged build finished. All automated tests passed.

@AmplabJenkins
Copy link

All automated tests passed.
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/16312/

@mengxr
Copy link
Contributor

mengxr commented Jul 3, 2014

Merged. Thanks!

asfgit pushed a commit that referenced this pull request Jul 3, 2014
    [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 IllegalArgumentException in ClinetArguments  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.
        3) In YarnClientSchedulerBackend's start method, if IllegalArgumentException is caught, it will exit with code 1, otherwise throw that exception.
        4) Fix some message typo in the Client.scala
    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.

+CC dbtsai mengxr

Author: John Zhao <codeboyyong@gmail.com>

Closes #1099 from codeboyyong/branch-0.9 and squashes the following commits:

00144b5 [John Zhao] use e.printStackTrace() to replace "Console.err.println(e.getMessage)" so that client console can  get more useful information when somthing is wrong.
addcecb [John Zhao]   [SPARK-1516]Throw exception in yarn client instead of run system.exit directly.
@mengxr
Copy link
Contributor

mengxr commented Jul 7, 2014

@codeboyyong The PR was not closed automatically. Could you close this PR?

@codeboyyong
Copy link
Contributor Author

Closed as xiangrui required.

@codeboyyong codeboyyong closed this Jul 8, 2014
wangyum pushed a commit that referenced this pull request May 26, 2023
…1099)

* [CARMEL-6174][FOLLOWUP] Change prefer shuffled hash join condition

* Select SHJ the max partition size than ADAPTIVE_SHUFFLE_HASH_JOIN_ADVISORY_STREAM_PARTITION_SIZE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants