What we did for gracefully shutting down the spark streaming context is extend a Spark Web UI Tab and perform a SparkContext.SparkUI.attachTab(<custom web ui>). However, the custom scala Web UI extensions needs to be under the package org.apache.spark.ui to get around with the package access restrictions.
Would it be possible that the SparkUI under SparkContext, and Spark Web UI packages exposed as public so that developers may be able to add customizations with their own tools? Thanks! On Tue, Sep 16, 2014 at 12:34 AM, stanley [via Apache Spark User List] < [email protected]> wrote: > Thank you. > > Would the following approaches to address this problem an overkills? > > a. create a ServerSocket in a different thread from the main thread that > created the Spark StreamingContext, and listens to shutdown command there > b. create a web service that wraps around the main thread that created the > Spark StreamingContext, and responds to shutdown requests > > Does Spark Streaming already provide similar capabilities? > > Stanley > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://apache-spark-user-list.1001560.n3.nabble.com/How-to-initiate-a-shutdown-of-Spark-Streaming-context-tp14092p14252.html > To start a new topic under Apache Spark User List, email > [email protected] > To unsubscribe from Apache Spark User List, click here > <http://apache-spark-user-list.1001560.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=1&code=amVvZmZyZXlsQGdtYWlsLmNvbXwxfDUzNTE3MDc2OQ==> > . > NAML > <http://apache-spark-user-list.1001560.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/How-to-initiate-a-shutdown-of-Spark-Streaming-context-tp14092p14277.html Sent from the Apache Spark User List mailing list archive at Nabble.com.
