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-20401][DOC]In the spark official configuration document, the 'spark.driver.supervise' configuration parameter specification and default values are necessary. #17696

Closed
wants to merge 18 commits into from

Conversation

guoxiaolongzte
Copy link

What changes were proposed in this pull request?

Use the REST interface submits the spark job.
e.g.
curl -X POST http://10.43.183.120:6066/v1/submissions/create --header "Content-Type:application/json;charset=UTF-8" --data'{
"action": "CreateSubmissionRequest",
"appArgs": [
"myAppArgument"
],
"appResource": "/home/mr/gxl/test.jar",
"clientSparkVersion": "2.2.0",
"environmentVariables": {
"SPARK_ENV_LOADED": "1"
},
"mainClass": "cn.zte.HdfsTest",
"sparkProperties": {
"spark.jars": "/home/mr/gxl/test.jar",
"spark.driver.supervise": "true",
"spark.app.name": "HdfsTest",
"spark.eventLog.enabled": "false",
"spark.submit.deployMode": "cluster",
"spark.master": "spark://10.43.183.120:6066"
}
}'

I hope that make sure that the driver is automatically restarted if it fails with non-zero exit code.
But I can not find the 'spark.driver.supervise' configuration parameter specification and default values from the spark official document.

How was this patch tested?

manual tests

Please review http://spark.apache.org/contributing.html before opening a pull request.

郭小龙 10207633 added 17 commits March 31, 2017 21:57
….driver.supervise' configuration parameter specification and default values are necessary.
@HyukjinKwon
Copy link
Member

Not a big deal. Waht do you think about wrapping the command you ran with ``` ... ``` in the PR description?

curl -X POST http://10.43.183.120:6066/v1/submissions/create --header "Content-Type:application/json;charset=UTF-8" --data '{
  ...
}

I think this makes the PR description more readable.

@guoxiaolongzte
Copy link
Author

@HyukjinKwon
But I wrote, no use ...
My computer is window7 system.
The browser is Chrome.

1

@HyukjinKwon
Copy link
Member

HyukjinKwon commented Apr 20, 2017

I will probably test it by myself later. Thanks for taking my comment into account.

@guoxiaolongzte
Copy link
Author

Please cut a picture, I see how you show on your computer?

@HyukjinKwon
Copy link
Member

Yup, I will let you know when I make it. I think this does not block this PR BTW :).

@SparkQA
Copy link

SparkQA commented Apr 20, 2017

Test build #3666 has finished for PR 17696 at commit 3e74d73.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

<td><code>spark.driver.supervise</code></td>
<td>false</td>
<td>
If value set true, restarts the driver on failure, make sure that
Copy link
Member

Choose a reason for hiding this comment

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

This sentence needs to be simplified. "If true, restarts the driver automatically if it fails with a non-zero exit status."

@HyukjinKwon
Copy link
Member

@guoxiaolongzte, I just tested the backquotes on Windows 7 with Chrome as below:

2017-04-21 4 22 07

2017-04-21 4 22 14

It is a backquote ` not a single-quote '. Could you try again? I see you made many PRs and I just would like them to be more readable.

<td>
If value set true, restarts the driver on failure, make sure that
the driver is automatically restarted if it fails with non-zero exit code.
Only in Spark standalone or Mesos with cluster deploy mode.
Copy link
Member

Choose a reason for hiding this comment

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

I am sorry for asking such a question @srowen. Is it the right sentence in English?

Copy link
Member

Choose a reason for hiding this comment

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

It'd be better to say "Only has effect in Spark standalone mode or Mesos cluster deploy mode."

Copy link
Author

@guoxiaolongzte guoxiaolongzte Apr 21, 2017

Choose a reason for hiding this comment

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

OK,I will fix it.Thank you.

@guoxiaolongzte
Copy link
Author

@HyukjinKwon
I will try to improve my ability to translate, sorry.

@SparkQA
Copy link

SparkQA commented Apr 21, 2017

Test build #3671 has finished for PR 17696 at commit 16655db.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@srowen
Copy link
Member

srowen commented Apr 21, 2017

Merged to master/2.2

@asfgit asfgit closed this in ad29040 Apr 21, 2017
asfgit pushed a commit that referenced this pull request Apr 21, 2017
…'spark.driver.supervise' configuration parameter specification and default values are necessary.

## What changes were proposed in this pull request?
Use the REST interface submits the spark job.
e.g.
curl -X  POST http://10.43.183.120:6066/v1/submissions/create --header "Content-Type:application/json;charset=UTF-8" --data'{
    "action": "CreateSubmissionRequest",
    "appArgs": [
        "myAppArgument"
    ],
    "appResource": "/home/mr/gxl/test.jar",
    "clientSparkVersion": "2.2.0",
    "environmentVariables": {
        "SPARK_ENV_LOADED": "1"
    },
    "mainClass": "cn.zte.HdfsTest",
    "sparkProperties": {
        "spark.jars": "/home/mr/gxl/test.jar",
        **"spark.driver.supervise": "true",**
        "spark.app.name": "HdfsTest",
        "spark.eventLog.enabled": "false",
        "spark.submit.deployMode": "cluster",
        "spark.master": "spark://10.43.183.120:6066"
    }
}'

**I hope that make sure that the driver is automatically restarted if it fails with non-zero exit code.
But I can not find the 'spark.driver.supervise' configuration parameter specification and default values from the spark official document.**
## How was this patch tested?

manual tests

Please review http://spark.apache.org/contributing.html before opening a pull request.

Author: 郭小龙 10207633 <[email protected]>
Author: guoxiaolong <[email protected]>
Author: guoxiaolongzte <[email protected]>

Closes #17696 from guoxiaolongzte/SPARK-20401.

(cherry picked from commit ad29040)
Signed-off-by: Sean Owen <[email protected]>
@guoxiaolongzte guoxiaolongzte deleted the SPARK-20401 branch June 12, 2017 10:17
peter-toth pushed a commit to peter-toth/spark that referenced this pull request Oct 6, 2018
…'spark.driver.supervise' configuration parameter specification and default values are necessary.

## What changes were proposed in this pull request?
Use the REST interface submits the spark job.
e.g.
curl -X  POST http://10.43.183.120:6066/v1/submissions/create --header "Content-Type:application/json;charset=UTF-8" --data'{
    "action": "CreateSubmissionRequest",
    "appArgs": [
        "myAppArgument"
    ],
    "appResource": "/home/mr/gxl/test.jar",
    "clientSparkVersion": "2.2.0",
    "environmentVariables": {
        "SPARK_ENV_LOADED": "1"
    },
    "mainClass": "cn.zte.HdfsTest",
    "sparkProperties": {
        "spark.jars": "/home/mr/gxl/test.jar",
        **"spark.driver.supervise": "true",**
        "spark.app.name": "HdfsTest",
        "spark.eventLog.enabled": "false",
        "spark.submit.deployMode": "cluster",
        "spark.master": "spark://10.43.183.120:6066"
    }
}'

**I hope that make sure that the driver is automatically restarted if it fails with non-zero exit code.
But I can not find the 'spark.driver.supervise' configuration parameter specification and default values from the spark official document.**
## How was this patch tested?

manual tests

Please review http://spark.apache.org/contributing.html before opening a pull request.

Author: 郭小龙 10207633 <[email protected]>
Author: guoxiaolong <[email protected]>
Author: guoxiaolongzte <[email protected]>

Closes apache#17696 from guoxiaolongzte/SPARK-20401.
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.

4 participants