You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spark.apache.org by Wenchen Fan <cl...@gmail.com> on 2019/07/01 00:45:24 UTC

Re: API for SparkContext ?

You can call `SparkContext#addSparkListener` with a listener that
implements `onApplicationEnd`.

On Tue, May 14, 2019 at 1:51 AM Nasrulla Khan Haris
<Na...@microsoft.com.invalid> wrote:

> HI All,
>
>
>
> Is there a API for sparkContext where we can add our custom code before
> stopping sparkcontext ?
>
> Appreciate your help.
>
> Thanks,
>
> Nasrulla
>
>
>