Re: Spark Caching Kafka Metadata

2016-02-01 Thread Benjamin Han
Is there another way to create topics from Spark? Is there any reason the above code snippet would still produce this error? I've dumbly inserted waits and retries for testing, but that still doesn't consistently work, even after waiting several minutes. On Fri, Jan 29, 2016 at 8:29 AM, Cody

Re: Spark Caching Kafka Metadata

2016-01-29 Thread Cody Koeninger
The kafka direct stream doesn't do any explicit caching. I haven't looked through the underlying simple consumer code in the kafka project in detail, but I doubt it does either. Honestly, I'd recommend not using auto created topics (it makes it too easy to pollute your topics if someone

Spark Caching Kafka Metadata

2016-01-28 Thread asdf zxcv
Does Spark cache which kafka topics exist? A service incorrectly assumes all the relevant topics exist, even if they are empty, causing it to fail. Fortunately the service is automatically restarted and by default, kafka creates the topic after it is requested. I'm trying to create the topic if