Skip to content

Commit ad29040

Browse files
郭小龙 10207633srowen
郭小龙 10207633
authored andcommitted
[SPARK-20401][DOC] In the spark official configuration document, the '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 <guo.xiaolong1@zte.com.cn> Author: guoxiaolong <guo.xiaolong1@zte.com.cn> Author: guoxiaolongzte <guo.xiaolong1@zte.com.cn> Closes #17696 from guoxiaolongzte/SPARK-20401.
1 parent fd648bf commit ad29040

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/configuration.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,14 @@ of the most common options to set are:
213213
and typically can have up to 50 characters.
214214
</td>
215215
</tr>
216+
<tr>
217+
<td><code>spark.driver.supervise</code></td>
218+
<td>false</td>
219+
<td>
220+
If true, restarts the driver automatically if it fails with a non-zero exit status.
221+
Only has effect in Spark standalone mode or Mesos cluster deploy mode.
222+
</td>
223+
</tr>
216224
</table>
217225

218226
Apart from these, the following properties are also available, and may be useful in some situations:

0 commit comments

Comments
 (0)