spark-rabbitmq icon indicating copy to clipboard operation
spark-rabbitmq copied to clipboard

Streaming does not stop

Open tanroopdhillon opened this issue 7 years ago • 2 comments

This is my configuration: StreamingContext streamingContext = new StreamingContext(sparkcontext, Durations.seconds(60000));

But the streaming doesn't seem to be stopping. I keep getting messages and is never able to move ahead

tanroopdhillon avatar Jun 12 '17 12:06 tanroopdhillon

What you specify there is your window duration. A window duration of 60000 seconds means it will gather messages for 60000 seconds (so, 41 days) and then start processing them. Then it'll gather messages for another 60000 messages. I would recommend using a lower time window that's suitable for your application and processing flow.

jniebuhr avatar Jun 22 '17 07:06 jniebuhr

I'm agree with @jniebuhr , but it's possible that we have one bug in the streamingContext stop function.

Could you add more info or logs??

compae avatar Aug 18 '17 07:08 compae