You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Hafiz Mujadid <ha...@gmail.com> on 2015/01/05 10:45:58 UTC
stopping streaming context
Hi experts!
Please is there anyway to stop spark streaming context when 5 batches are
completed ?
Thanks
--
View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/stopping-streaming-context-tp20970.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
For additional commands, e-mail: user-help@spark.apache.org
Re: stopping streaming context
Posted by Akhil Das <ak...@sigmoidanalytics.com>.
Have a look at StreamingListener
<http://spark.apache.org/docs/latest/api/scala/index.html#org.apache.spark.streaming.scheduler.StreamingListener>,
Here's an example
<http://stackoverflow.com/questions/20950268/how-to-stop-spark-streaming-context-when-the-network-connection-tcp-ip-is-clos>
on how to use it.
Thanks
Best Regards
On Mon, Jan 5, 2015 at 3:15 PM, Hafiz Mujadid <ha...@gmail.com>
wrote:
> Hi experts!
>
> Please is there anyway to stop spark streaming context when 5 batches are
> completed ?
>
>
> Thanks
>
>
>
> --
> View this message in context:
> http://apache-spark-user-list.1001560.n3.nabble.com/stopping-streaming-context-tp20970.html
> Sent from the Apache Spark User List mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
> For additional commands, e-mail: user-help@spark.apache.org
>
>