Enabling a Spark Executor to Execute Custom Code When Exiting
This section applies only to MRS 3.2.0 or later.
Scenario
You can configure the following parameters to execute custom code when Executor exits.
Configuration Parameters
Configure the following parameters in the spark-defaults.conf file of the Spark client.
Parameter |
Description |
Default Value |
---|---|---|
spark.executor.execute.shutdown.cleaner |
If this parameter is set to true, an executor can execute custom code when the executor exits. |
false |
spark.executor.execute.shutdown.cleaner.max.timeout |
Timeout interval for an executor to execute custom code. |
240s |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot