Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Duplicate
-
1.3.0
-
None
-
None
Description
// Create direct kafka stream with brokers and topics
final JavaPairInputDStream<String, String> messages = KafkaUtils.createDirectStream(jssc, String.class, String.class, StringDecoder.class,
StringDecoder.class, kafkaParams, topics);
messages.foreachRDD(new Function<JavaPairRDD<String, String>, Void>() {
@Override
public Void call(final JavaPairRDD<String, String> rdd) throws Exception {
if (rdd instanceof HasOffsetRanges) {
//will never happen.
Attachments
Attachments
Issue Links
- duplicates
-
SPARK-8390 Update DirectKafkaWordCount examples to show how offset ranges can be used
- Resolved