spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tobias Pfeiffer <...@preferred.jp>
Subject Re: How to shut down Spark Streaming with Kafka properly?
Date Thu, 05 Jun 2014 12:39:56 GMT
Sean,

thanks for your link! I will try this ASAP!

On Thu, Jun 5, 2014 at 6:49 PM, Sean Owen <sowen@cloudera.com> wrote:
> However I do seem to be able to shut down everything cleanly and
> terminate my (Java-based) program. I just call
> StreamingContext.stop(true, true). I don't know why it's different.

I think that's a peculiarity of sbt, cf.
http://www.scala-sbt.org/0.12.2/docs/Detailed-Topics/Running-Project-Code.html
If I call System.exit() that will surely terminate my program (and
sbt) as well, but in general I think it's better not to have these
threads lurking around ;-)

Thanks
Tobias

Mime
View raw message