Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-2892

Socket Receiver does not stop when streaming context is stopped

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 1.0.2
    • 1.2.1
    • DStreams
    • None

    Description

      Running NetworkWordCount with

      ssc.start(); Thread.sleep(10000); ssc.stop(stopSparkContext = false); Thread.sleep(60000)

      gives the following error

      14/08/06 18:37:13 INFO TaskSetManager: Finished task 0.0 in stage 0.0 (TID 0) in 10047 ms on localhost (1/1)
      14/08/06 18:37:13 INFO DAGScheduler: Stage 0 (runJob at ReceiverTracker.scala:275) finished in 10.056 s
      14/08/06 18:37:13 INFO TaskSchedulerImpl: Removed TaskSet 0.0, whose tasks have all completed, from pool
      14/08/06 18:37:13 INFO SparkContext: Job finished: runJob at ReceiverTracker.scala:275, took 10.179263 s
      14/08/06 18:37:13 INFO ReceiverTracker: All of the receivers have been terminated
      14/08/06 18:37:13 WARN ReceiverTracker: All of the receivers have not deregistered, Map(0 -> ReceiverInfo(0,SocketReceiver-0,null,false,localhost,Stopped by driver,))
      14/08/06 18:37:13 INFO ReceiverTracker: ReceiverTracker stopped
      14/08/06 18:37:13 INFO JobGenerator: Stopping JobGenerator immediately
      14/08/06 18:37:13 INFO RecurringTimer: Stopped timer for JobGenerator after time 1407375433000
      14/08/06 18:37:13 INFO JobGenerator: Stopped JobGenerator
      14/08/06 18:37:13 INFO JobScheduler: Stopped JobScheduler
      14/08/06 18:37:13 INFO StreamingContext: StreamingContext stopped successfully
      14/08/06 18:37:43 INFO SocketReceiver: Stopped receiving
      14/08/06 18:37:43 INFO SocketReceiver: Closed socket to localhost:9999

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            tdas Tathagata Das
            tdas Tathagata Das
            Votes:
            6 Vote for this issue
            Watchers:
            11 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment