Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-8412

java#KafkaUtils.createDirectStream Java(Pair)RDDs do not implement HasOffsetRanges

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Duplicate
    • 1.3.0
    • None
    • DStreams
    • 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

        Issue Links

          Activity

            People

              Unassigned Unassigned
              blipe jweinste
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: