Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Spark Streaming - Conversion of Java Dstream to RDD

Highlighted

Spark Streaming - Conversion of Java Dstream to RDD

Contributor

I'm reading data from Kafka topics using Spark streaming. Java Dstreams is converted to RDD and custom method is called on each rdd. But the method myProcessor.executeValidation() is not called/Executed.

InputData is JavaDStream object, which is not null.
if (inputData != null) {
	inputData.foreachRDD(rdd -> myProcessor.executeValidation(rdd));
}
Don't have an account?
Coming from Hortonworks? Activate your account here