forked from docs/doc-exports
Reviewed-by: Kacur, Michal <michal.kacur@t-systems.com> Co-authored-by: Yang, Tong <yangtong2@huawei.com> Co-committed-by: Yang, Tong <yangtong2@huawei.com>
43 lines
3.3 KiB
HTML
43 lines
3.3 KiB
HTML
<a name="mrs_01_24805"></a><a name="mrs_01_24805"></a>
|
|
|
|
<h1 class="topictitle1">Enabling an Executor to Execute Custom Code When Exiting</h1>
|
|
<div id="body0000001533304686"><div class="note" id="mrs_01_24805__note361691045716"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="mrs_01_24805__p4616191075718">This section applies only to MRS 3.2.0 or later.</p>
|
|
</div></div>
|
|
<div class="section" id="mrs_01_24805__section10411113113617"><h4 class="sectiontitle">Scenario</h4><p id="mrs_01_24805__p18750184218255">You can configure the following parameters to execute custom code when Executor exits.</p>
|
|
</div>
|
|
<div class="section" id="mrs_01_24805__section84932420365"><h4 class="sectiontitle">Configuration Parameters</h4><p id="mrs_01_24805__p18420142117236">Configure the following parameters in the <strong id="mrs_01_24805__b83351840181718">spark-defaults.conf</strong> file of the Spark client.</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_24805__t18af5fbd3aeb4bda8d13de81ed31f812" frame="border" border="1" rules="all"><thead align="left"><tr id="mrs_01_24805__r74395b638f4442e3aab246ff89b4f414"><th align="left" class="cellrowborder" valign="top" width="30%" id="mcps1.3.3.3.1.4.1.1"><p id="mrs_01_24805__a1f516e63d9e642069c06eb1b4f809563"><strong id="mrs_01_24805__a744ab93a07754850a5f6c727a33e62e1">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="45%" id="mcps1.3.3.3.1.4.1.2"><p id="mrs_01_24805__af9566f38e89e419f83b61605b532f7ad"><strong id="mrs_01_24805__a6645dddca1604ff3a7c65c302142e2da">Description</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.3.3.1.4.1.3"><p id="mrs_01_24805__ac817ca09e627493cb99f5b57d2943bd6"><strong id="mrs_01_24805__adff60dc7bdc24a8aaa6c1b5c6630331e">Default Value</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="mrs_01_24805__rd52556c4569841b3a5e5a2ebdfcb3b56"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.3.3.1.4.1.1 "><p id="mrs_01_24805__p117421420173213">spark.executor.execute.shutdown.cleaner</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.3.3.1.4.1.2 "><p id="mrs_01_24805__p1560611114501">If this parameter is set to <strong id="mrs_01_24805__b10940131011816">true</strong>, an executor can execute custom code when the executor exits.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.3.1.4.1.3 "><p id="mrs_01_24805__p3122194511585">false</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_24805__row0274115415112"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.3.3.1.4.1.1 "><p id="mrs_01_24805__p196061327123219">spark.executor.execute.shutdown.cleaner.max.timeout</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.3.3.1.4.1.2 "><p id="mrs_01_24805__p12452172720222">Timeout interval for an executor to execute custom code.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.3.1.4.1.3 "><p id="mrs_01_24805__p1227485412511">240s</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_1941.html">Scenario-Specific Configuration</a></div>
|
|
</div>
|
|
</div>
|
|
|